I know that I could do this with a series of for loops that iterate through the string but that would be terrible programming. Well, my professor prefers I don\'t do it this
you can use :
public static boolean isTextContainUpperCase(String text) { if (StringUtils.isEmpty(text)) { return false; } return !text.equals(text.toLowerCase()); }