Here you can find the source of toCamelCase(String begin, String... parts)
public static String toCamelCase(String begin, String... parts)
//package com.java2s; //License from project: Apache License public class Main { public static String toCamelCase(String begin, String... parts) { String name = begin.length() > 0 ? Character.toLowerCase(begin.charAt(0)) + begin.substring(1) : begin; for (String part : parts) { name += Character.toUpperCase(part.charAt(0)) + part.substring(1); }// w w w. j av a 2 s. com return name; } }