String upcaseFirst ( String name ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( name . substring ( 0 , 1 ) . toUpperCase ( Locale . ENGLISH ) ) ; sb . append ( name . substring ( 1 ) ) ; return sb . toString ( ) ; }
Upcase first letter