src/main/java/org/jboss/util/Strings.java
/**
    * Capitalize the first character of the given string.
    *
    * @param string     String to capitalize.
    * @return           Capitalized string.
    *
    * @throws IllegalArgumentException    String is <kk>null</kk> or empty.
    */
Capitalize the first character of the given string.
@param string     String to capitalize.
@return           Capitalized string.

@throws IllegalArgumentException    String is null or empty.
Capitalize the first character of the given string . @param string String to capitalize . @return Capitalized string . @throws IllegalArgumentException String is null or empty .
public static String capitalize(final String string)
   {
      if (string == null)
         throw new NullArgumentException("string");
      if (string.equals(""))
         throw new EmptyStringException("string");
      return Character.toUpperCase(string.charAt(0)) + string.substring(1);
   }
public static String capitalize ( final String string ) { if ( string == null ) throw new NullArgumentException ( "string" ) ; if ( string . equals ( "" ) ) throw new EmptyStringException ( "string" ) ; return Character . toUpperCase ( string . charAt ( 0 ) ) + string . substring ( 1 ) ; }
Capitalize the first character of the given string.
Capitalize the first character of the given string .