public static String createFirstLowCaseName ( String scenarioDescription ) { String [ ] words = scenarioDescription . trim ( ) . split ( " " ) ; String name = "" ; for ( int i = 0 ; i < words . length ; i ++ ) { name += changeFirstLetterToCapital ( words [ i ] ) ; } return changeFirstLetterToLowerCase ( name ) ; }
Given a string with method or package name creates a Class Name with no spaces and first letter lower case