Java String Lower Case toLowerCaseFirst(String text)

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

Description

Changes the first character of the given text to lower case.

License

Open Source License

Parameter

Parameter Description
text the text which should be modified

Return

the result

Declaration

public static String toLowerCaseFirst(String text) 

Method Source Code

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

public class Main {
    /**/* ww  w  . java  2s.  c  om*/
     * Changes the first character of the given text to lower case.
     * 
     * @param text the text which should be modified
     * @return the result
     */
    public static String toLowerCaseFirst(String text) {
        char[] charArray = text.toCharArray();
        charArray[0] = Character.toLowerCase(charArray[0]);
        return String.valueOf(charArray);
    }
}

Related

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