Here you can find the source of toLowerCaseFirst(String text)
Parameter | Description |
---|---|
text | the text which should be modified |
public static String toLowerCaseFirst(String text)
//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); } }