Java String Lower Case toLowerCaseFirst(String text)

Here you can find the source of toLowerCaseFirst(String text)

Description

to Lower Case First

License

Apache License

Declaration

public static String toLowerCaseFirst(String text) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {

    public static String toLowerCaseFirst(String text) {
        return text.substring(0, 1).toLowerCase() + text.substring(1);
    }//from w  w w .j a  v a2 s. co  m

    public static String subString(String src, int length) {
        if (src == null) {
            return null;
        }
        int i = src.length();
        if (i > length) {
            return src.substring(0, length);
        }
        return src;
    }
}

Related

  1. toLowerCaseAscii(String s)
  2. toLowerCaseFirst(String str)
  3. toLowerCaseFirst(String str)
  4. toLowerCaseFirst(String str)
  5. toLowerCaseFirst(String text)
  6. toLowerCaseFirstLetter(String str)
  7. toLowercaseFirstLetter(String str)
  8. toLowercaseFirstLetter(String value)
  9. toLowerCaseFirstOne(String s)