public class Match {
public Match() {
// TODO Auto-generated constructor stub
}
/**
* @param args
*/
public static void main(String[] args) { //判断是否是空格
String s = " ";
if(s.matches("\\s*")){ //我一开始写的是:"/\\s*/",发现不对
System.out.println("space");
}
}
}
阅读(909) | 评论(0) | 转发(0) |