Here you can find the source of decapitalize(String string)
Parameter | Description |
---|---|
string | the string that we want to decapitalize. |
public static String decapitalize(String string)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w.j a v a 2s. c om*/ * Helper method. Lower case the first letter of the received argument. * * @param string the string that we want to decapitalize. * * @return the same string but with the first letter lower cased. */ public static String decapitalize(String string) { return Character.toLowerCase(string.charAt(0)) + string.substring(1); } }