question: public static String upperFirstChar ( String string ) { if ( string == null ) return null ; if ( string . length ( ) <= 1 ) return string . toLowerCase ( ) ; StringBuilder sb = new StringBuilder ( string ) ; sb . setCharAt ( 0 , Character . toUpperCase ( sb . charAt ( 0 ) ) ) ; return sb . toString ( ) ; }
target:  Changes the first letter of the passed String to upper case.