Java String Camel Case Format toCamelCase(String name)

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

Description

Returns the input String with a capital first letter, and all the other letters become lower case.

License

Open Source License

Declaration

public static String toCamelCase(String name) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**//from   w w  w  .j a va2 s  .  co m
     * Returns the input String with a capital first letter, and all the
     * other letters become lower case. 
     */
    public static String toCamelCase(String name) {
        return name.substring(0, 1).toUpperCase()
                + name.substring(1).toLowerCase();
    }
}

Related

  1. toCamelCase(String input, boolean firstCharUppercase, char separator)
  2. toCamelCase(String inputString)
  3. toCamelCase(String inputString)
  4. toCamelCase(String name)
  5. toCamelCase(String name)
  6. toCamelCase(String name)
  7. toCamelCase(String name)
  8. toCamelCase(String name)
  9. toCamelCase(String name)