public static String upperCaseFirstChar ( String _str ) { if ( _str == null ) { return null ; } if ( _str . isEmpty ( ) ) { return _str ; } return _str . substring ( 0 , 1 ) . toUpperCase ( ) + _str . substring ( 1 ) ; }
Upper case the first letter of the given string .