Here you can find the source of unCapitalize(String string)
Parameter | Description |
---|---|
string | string to unCapitalize |
public static String unCapitalize(String string)
//package com.java2s; //License from project: Open Source License public class Main { /**//from w ww. j a va2 s . c o m * Will return a uncapitalized string * * @param string string to unCapitalize * * @return uncapitalized string */ public static String unCapitalize(String string) { return string.substring(0, 1).toLowerCase() + string.substring(1); } }