private boolean isLegalChar(char c){
  if (Character.isLetter(c))   return Character.isUpperCase(c);
  return true;
}

private boolean isLegalChar ( char c ) { if ( Character . isLetter ( c ) ) return Character . isUpperCase ( c ) ; return true ; }
false if the character is a letter and it is lowercase . true in all other cases .
