Here you can find the source of toCamelCase(String value, String separator)
public static String toCamelCase(String value, String separator)
//package com.java2s; //License from project: Apache License public class Main { public static String toCamelCase(String value, String separator) { StringBuilder sb = new StringBuilder(); for (String part : value.split(separator)) { if (part.isEmpty()) continue; sb.append(part.substring(0, 1).toUpperCase()); if (part.length() > 1) sb.append(part.substring(1)); }/*w w w . ja v a 2 s .co m*/ return sb.toString(); } }