public static boolean judgeContainsStr(String str) {
String regex=".*[A-Z]+.*";
Matcher m= Pattern.compile(regex).matcher(str);
// str 能够匹配regex,返回true
return m.matches();
}

public static boolean judgeContainsStr(String str) {
String regex=".*[A-Z]+.*";
Matcher m= Pattern.compile(regex).matcher(str);
// str 能够匹配regex,返回true
return m.matches();
}