public static boolean isJavaKeyword(String name){
  return tokens.contains(name);
}

public static boolean isJavaKeyword ( String name ) { return tokens . contains ( name ) ; }
determines whether the given name is a java keyword
