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

Stringuncapitalize(String str)
uncapitalize
return changeFirstCharacterCase(str, false);
Stringuncapitalize(String str)
uncapitalize
int strLen;
if ((str == null) || ((strLen = str.length()) == 0)) {
    return str;
return strLen + Character.toLowerCase(str.charAt(0)) + str.substring(1);
Stringuncapitalize(String str)
uncapitalize
int strLen;
return str != null && (strLen = str.length()) != 0 ? (new StringBuffer(strLen))
        .append(Character.toLowerCase(str.charAt(0))).append(str.substring(1)).toString() : str;
Stringuncapitalize(String string)
Returns the specified string with its first character converted to lower case.
int length = string.length();
if (length == 0) {
    return string;
} else if (length == 1) {
    return string.toLowerCase();
} else {
    return (Character.toLowerCase(string.charAt(0)) + string.substring(1));
StringunCapitalize(String string)
Will return a uncapitalized string
return string.substring(0, 1).toLowerCase() + string.substring(1);
Stringuncapitalize(String string)
uncapitalize
return prepare(string, false);
Stringuncapitalize(String string)
uncapitalize
return string.substring(0, 1).toLowerCase() + string.substring(1);
Stringuncapitalize(String string0)
Safely uncapitalizes a string by converting the first character to lower case.
if (string0 == null) {
    return null;
int length = string0.length();
if (length == 0) {
    return string0;
} else if (length == 1) {
    return string0.toLowerCase();
...
Stringuncapitalize(String text)
Makes the first character of a String lowercase.
return text.substring(0, 1).toLowerCase() + text.substring(1);
StringunCapitalizeClass(String className)
Uncapitalizes a full qualified class name.
StringBuilder builder = new StringBuilder(className.length());
int packageIndex = className.lastIndexOf(".");
if (packageIndex != -1) {
    builder.append(className.substring(0, packageIndex + 1));
builder.append(Character.toLowerCase(className.charAt(packageIndex + 1)));
builder.append(className.substring(packageIndex + 2));
className = builder.toString();
...