public boolean isNumber(String s) {
Pattern p = Pattern.compile(".*\\d+.*");
Matcher m = p.matcher(s);
return m.matches();
}
public boolean isNumber(String s) {
Pattern p = Pattern.compile(".*\\d+.*");
Matcher m = p.matcher(s);
return m.matches();
}

被折叠的 条评论
为什么被折叠?