Here you can find the source of camelCase(String s)
public static String camelCase(String s)
//package com.java2s; //License from project: Open Source License public class Main { public static String camelCase(String s) { if (s == null || s.length() < 2) return null; String firstLetter = s.substring(0, 1).toUpperCase(); return firstLetter + s.substring(1).toLowerCase(); }//w ww. j a va2s . c o m }