src/main/java/org/jboss/util/Strings.java
/**
    * Check whether the given String is a reserved Java Keyword
    * according to the Java Language Specifications.
    *
    * @param s String to check
    *
    * @return <code>true</code> if the given String is a reserved Java
    *         keyword, <code>false</code> otherwise.
    */
Check whether the given String is a reserved Java Keyword
according to the Java Language Specifications.

@param s String to check

@return true if the given String is a reserved Java
keyword, false otherwise.
Check whether the given String is a reserved Java Keyword according to the Java Language Specifications . @param s String to check @return true if the given String is a reserved Java keyword false otherwise .
public final static boolean isJavaKeyword(String s)
   {
      if (s == null || s.length() == 0)
      {
         return false;
      }
      for (int i = 0; i < keywords.length; i++)
      {
         if (keywords[i].equals(s))
         {
            return true;
         }
      }
      return false;
   }
public final static boolean isJavaKeyword ( String s ) { if ( s == null || s . length ( ) == 0 ) { return false ; } for ( int i = 0 ; i < keywords . length ; i ++ ) { if ( keywords [ i ] . equals ( s ) ) { return true ; } } return false ; }
Check whether the given String is a reserved Java Keyword
 according to the Java Language Specifications.
Check whether the given String is a reserved Java Keyword according to the Java Language Specifications .