Here you can find the source of decapitalize(String word)
Parameter | Description |
---|---|
word | word/phrase to decapitalize. |
public static String decapitalize(String word)
//package com.java2s; //License from project: LGPL public class Main { /**/*from ww w.j av a2s . co m*/ * Decapitalizes a word - only the first character is converted to lower case. * * * @param word word/phrase to decapitalize. * @return same as input argument, but the first character is in lower case. */ public static String decapitalize(String word) { return word.substring(0, 1).toLowerCase() + word.substring(1); } }