判断字符串中是否有数字
判断字符串中是否有数字
public static boolean HasDigit(String content) { boolean flag = false; Pattern p = Pattern.compile(".*\\d+.*"); Matcher m = p.matcher(content); if (m.matches()) { flag = true; } return flag; }
###########################
QQ 3087438119