Here is code to detect a string containing uppercase letters but not sure whether its performs the best. Any improvement would be great help as im applying to huge chuck of data.
public static boolean testAllUpperCase(String str){
for(int i=0; i<str.length(); i++){
char c = str.charAt(i);
if(c >= 49 && c <= 102) {
return false;
}
}
//str.charAt(index)
return true;
}