question: public static int countUpperCase ( final String text ) { int count = 0 ; for ( final char chr : text . toCharArray ( ) ) { if ( Character . isUpperCase ( chr ) ) { count ++ ; } } return count ; }
target:  Counts the number of upper case characters.