Java String Camel Case Format toCamelCase(String s)

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

Description

To Camel-case

License

Open Source License

Parameter

Parameter Description
s a parameter

Declaration

public static String toCamelCase(String s) 

Method Source Code

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

Related

  1. toCamelCase(String originalName)
  2. toCamelCase(String origString)
  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)