java判断字符串重是否包含数字
public static boolean isNumeric(String str) {
Pattern pattern = Pattern.compile(".*[0-9].*");
return pattern.matcher(str).matches();
}
public static boolean isNumeric(String str) {
Pattern pattern = Pattern.compile(".*[0-9].*");
return pattern.matcher(str).matches();
}