public static boolean isContainNumber(String company) { Pattern p = Pattern.compile("[0-9]"); Matcher m = p.matcher(company); if (m.find()) { return true; } return false; }
public static boolean isContainNumber(String company) { Pattern p = Pattern.compile("[0-9]"); Matcher m = p.matcher(company); if (m.find()) { return true; } return false; }
转载于:https://www.cnblogs.com/tnsay/p/5817872.html