Here you can find the source of toCamelCase(String name)
public static String toCamelCase(String name)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w w w .j a va2 s . co m * Returns the input String with a capital first letter, and all the * other letters become lower case. */ public static String toCamelCase(String name) { return name.substring(0, 1).toUpperCase() + name.substring(1).toLowerCase(); } }