Java Utililty Methods String Uncapitalize

List of utility methods to do String Uncapitalize

Description

The list of methods to do String Uncapitalize are organized into topic(s).

Method

Stringuncapitalized(String aString)
Returns string with lowercased first letter
if (aString == null || aString.length() == 0)
    return aString;
char c = Character.toLowerCase(aString.charAt(0));
return (aString.length() == 1) ? Character.toString(c) : c + aString.substring(1);
StringuncapitalizeFirstLetter(String s)
uncapitalize First Letter
if (s.length() == 0)
    throw new IllegalArgumentException("Cannot uncapitalize first letter of empty string");
return Character.toString(Character.toLowerCase(s.charAt(0))) + s.substring(1);
StringuncapitalizeFirstLetter(String str)
Returns a new string where the first letter of the specified string is capitalized.
if (str.length() > 0) {
    return replaceCharAt(str, 0, Character.toLowerCase(str.charAt(0)));
return str;
StringuncapitalizeFirstLetter(String value)
uncapitalize First Letter
return value.substring(0, 1).toLowerCase() + value.substring(1);
StringuncapitalizeWord(String word)
Convert the initial of given string word to lower case.
String result = null;
if (isValid(word)) {
    result = word.substring(0, 1).toLowerCase() + word.substring(1);
} else {
    return word;
return result;