Java String Camel Case Format toCamelCase(String s)

Here you can find the source of toCamelCase(String s)

Description

Lower-case the first letter of a string, leaving the rest in it's original case

License

Open Source License

Parameter

Parameter Description
s String to convert to camel-case

Return

Camel-cased string

Declaration

public static String toCamelCase(String s) 

Method Source Code

//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);
    }
}

Related

  1. toCamelCase(String s)
  2. toCamelCase(String s)
  3. toCamelCase(String s)
  4. toCamelCase(String s)
  5. toCamelCase(String s)
  6. toCamelCase(String s)
  7. toCamelCase(String s)
  8. toCamelCase(String s)
  9. toCamelCase(String s)