public static boolean ISALLUPPERCASE(String token){
  for (int i=0; i < token.length(); i++)   if (!Character.isUpperCase(token.charAt(i)))   return false;
  return true;
}

public static boolean ISALLUPPERCASE ( String token ) { for ( int i = 0 ; i < token . length ( ) ; i ++ ) if ( ! Character . isUpperCase ( token . charAt ( i ) ) ) return false ; return true ; }
determines if a string contains all caps
