Java String Camel Case camelCase(String s)

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

Description

camel Case

License

Open Source License

Declaration

public static String camelCase(String s) 

Method Source Code

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

public class Main {
    public static String camelCase(String s) {
        if (s == null || s.length() < 2)
            return null;

        String firstLetter = s.substring(0, 1).toUpperCase();
        return firstLetter + s.substring(1).toLowerCase();
    }//w  ww. j  a va2s  . c  o m
}

Related

  1. camelCase(String key)
  2. camelCase(String name, boolean capitalize)
  3. camelCase(String s)
  4. camelCase(String s)
  5. camelCase(String s)
  6. camelCase(String s)
  7. camelCase(String str)
  8. CamelCase(String str)
  9. camelCase(String string, boolean firstUpper)