Java Utililty Methods String Lower Case

List of utility methods to do String Lower Case

Description

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

Method

StringtoLowerCaseFirst(String str)
to Lower Case First
if (str == null || str.length() == 0) {
    return str;
String first = str.substring(0, 1).toLowerCase();
String rest = str.substring(1, str.length());
String newStr = new StringBuffer(first).append(rest).toString();
return newStr;
StringtoLowerCaseFirst(String str)
to Lower Case First
if (str == null) {
    return null;
} else if (str.length() == 0) {
    return str;
} else {
    String pre = String.valueOf(str.charAt(0));
    return str.replaceFirst(pre, pre.toLowerCase());
StringtoLowerCaseFirst(String text)
Changes the first character of the given text to lower case.
char[] charArray = text.toCharArray();
charArray[0] = Character.toLowerCase(charArray[0]);
return String.valueOf(charArray);
StringtoLowerCaseFirst(String text)
to Lower Case First
return text.substring(0, 1).toLowerCase() + text.substring(1);
StringtoLowerCaseFirstLetter(String str)
to Lower Case First Letter
return str.substring(0, 1).toLowerCase() + str.substring(1);
StringtoLowercaseFirstLetter(String str)
to Lowercase First Letter
if (str == null || str.length() == 0) {
    return str;
char firstLetter = str.charAt(0);
if (Character.isUpperCase(firstLetter)) {
    if (str.length() > 1) {
        return "" + Character.toLowerCase(firstLetter) + str.substring(1);
    } else {
...
StringtoLowercaseFirstLetter(String value)
to Lowercase First Letter
String capital = null;
if (value != null) {
    int length = value.length();
    if (length > 0) {
        StringBuffer buffer = new StringBuffer(value);
        for (int i = 0; i < length; i++) {
            char ch = value.charAt(i);
            if (i == 0 || i == length - 1
...
StringtoLowerCaseFirstOne(String s)
to Lower Case First One
if (Character.isLowerCase(s.charAt(0)))
    return s;
else
    return (new StringBuilder()).append(Character.toLowerCase(s.charAt(0))).append(s.substring(1))
            .toString();
StringtoLowerCaseIdent(String ident)
to Lower Case Ident
return Character.toLowerCase(ident.charAt(0)) + ident.substring(1);
StringtoLowerCaseIgnoreNull(String tobeDone)
to Lower Case Ignore Null
if (tobeDone != null) {
    return tobeDone.toLowerCase();
return null;