如何检查字符串开头的空格。
最佳答案
http://download.oracle.com/javase/6/docs/api/java/lang/String.html
你可以尝试myString.startswith("")
或myString.matches("^ +.*")
...并删除每一侧的边框空白:myString.trim()
关于java - 如何检查字符串开头的空格?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6572240/