Here you can find the source of toCamelCase(String origString)
public static String toCamelCase(String origString)
//package com.java2s; //License from project: Apache License public class Main { public static String toCamelCase(String origString) { StringBuffer buffer = new StringBuffer(); buffer.append(Character.toUpperCase(origString.charAt(0))); buffer.append(origString.substring(1)); return buffer.toString(); }//from ww w . j a v a 2 s. c o m }