Java Utililty Methods String Decapitalize

List of utility methods to do String Decapitalize

Description

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

Method

Stringdecapitalize(String word)
Decapitalizes a word - only the first character is converted to lower case.
return word.substring(0, 1).toLowerCase() + word.substring(1);
StringdecapitalizeAsJavaBeans(String name)
decapitalize As Java Beans
if (isEmpty(name)) {
    return name;
char[] chars = name.toCharArray();
if (chars.length >= 2 && Character.isUpperCase(chars[0]) && Character.isUpperCase(chars[1])) {
    return name;
chars[0] = Character.toLowerCase(chars[0]);
...
StringdecapitalizeFirstCharOfString(final String input)
Decapitalizes first char of an input string.
if (input == null || input.length() == 0) {
    return "";
} else if (input.length() == 1) {
    return input.toLowerCase();
} else {
    return input.substring(0, 1).toLowerCase() + input.substring(1);
StringdecapitalizeFirstLetter(final String str)
Utility method decapitalizes the first letter of string, used to generate variable names from type name
if (str == null || str.length() <= 0) {
    return str;
final char[] chars = str.toCharArray();
chars[0] = Character.toLowerCase(chars[0]);
return new String(chars);
StringdeCapitalizeFirstLetter(String data)
de Capitalize First Letter
return data.substring(0, 1).toLowerCase() + data.substring(1);
StringdecapitalizeName(String name)
Decapitalize a name.
if (name.length() == 0) {
    return name;
} else {
    String lowerName = name.toLowerCase();
    int i;
    for (i = 0; i < name.length(); i++) {
        if (name.charAt(i) == lowerName.charAt(i)) {
            break;
...
StringdecapitalizePropertyName(String propertyName)
decapitalize Property Name
if (propertyName.isEmpty() || startsWithSeveralUpperCaseLetters(propertyName)) {
    return propertyName;
} else {
    return propertyName.substring(0, 1).toLowerCase() + propertyName.substring(1);
StringdecapitalizeString(String string)
Returns the string defined by parameter string decapitalized (the first letter in lowercase).
if (string.length() == 0)
    return string;
String firstLetter = string.substring(0, 1);
String theRest = string.substring(1, string.length());
return firstLetter.toLowerCase() + theRest;
StringdecapitalizeTheFirstLetter(String input)
decapitalize The First Letter
String result;
if (input.length() > 0) {
    result = input.substring(0, 1).toLowerCase() + input.substring(1);
} else {
    result = input;
return result;