Here you can find the source of toCamelCase(String s)
Parameter | Description |
---|---|
s | a parameter |
public static String toCamelCase(String s)
//package com.java2s; //License from project: Open Source License public class Main { /**/* w w w. j a va 2 s. c o m*/ * To Camel-case * @param s * @return */ public static String toCamelCase(String s) { return s.substring(0, 1).toUpperCase() + s.substring(1).toLowerCase(); } }