How to check if one string has more than one uppercase character (two or more next to each other) in Java? I've tried:
String word = scanner.nextLine();
for(int i=0;i<word.length();i++) {
char value = word.charAt(i);
if(Character.isUpperCase(value) && Character.isUpperCase(value+1) {
System.Out.Print("There is more than one character uppercase");
}
}