question: public static boolean isAllCap ( String str ) { if ( str . length ( ) <= 0 ) { return false ; } for ( int i = 0 ; i < str . length ( ) ; i ++ ) { if ( ! Character . isLetter ( str . charAt ( i ) ) || ! Character . isUpperCase ( str . charAt ( i ) ) ) { return false ; } } return true ; }
target:  Checks if is all capitalized.