Here you can find the source of toCamelCase(String s)
Parameter | Description |
---|---|
s | String to convert to camel-case |
public static String toCamelCase(String s)
//package com.java2s; public class Main { /**/*from w w w.j a v a2s. c o m*/ * Lower-case the first letter of a string, leaving the rest in it's * original case * * @param s * String to convert to camel-case * @return Camel-cased string */ public static String toCamelCase(String s) { return s.substring(0, 1).toLowerCase() + s.substring(1); } }