public static String toCamelCase ( String name ) { String [ ] parts = name . split ( "_" ) ; String result = parts [ 0 ] ; for ( int i = 1 ; i < parts . length ; i ++ ) { if ( parts [ i ] . length ( ) > 0 ) { result += upperFirstChar ( parts [ i ] ) ; } } return result ; }
Converts a string to camel case .