public static String toCamelCase ( String str ) { String [ ] wordList = str . toLowerCase ( ) . split ( "_" ) ; String finalStr = "" ; for ( String word : wordList ) { finalStr += capitalize ( word ) ; } return finalStr ; }
Convert a string to CamelCase