public static String camelCasePath ( String fqn ) { StringBuilder sb = new StringBuilder ( ) ; for ( String part : fqn . split ( Pattern . quote ( File . separator ) ) ) { sb . append ( capitalize ( part ) ) ; } return sb . toString ( ) ; }
Given a path return as a camel - cased name . Used for example in header guards .