Java Utililty Methods Char Lower Case

List of utility methods to do Char Lower Case

Description

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

Method

CharSequencetoLowerCase(CharSequence chars)
to Lower Case
StringBuilder builder = new StringBuilder();
char c;
for (int i = 0; i < chars.length(); i++) {
    c = chars.charAt(i);
    if (Character.isUpperCase(c))
        c = Character.toLowerCase(c);
    builder.append(c);
return builder.toString();
StringtoLowerCase(CharSequence string)
Converts to lower case independent of the current locale via Character#toLowerCase(char) which uses mapping information from the UnicodeData file.
char lowerCaseChars[] = new char[string.length()];
for (int i = 0; i < string.length(); i++) {
    lowerCaseChars[i] = Character.toLowerCase(string.charAt(i));
return new String(lowerCaseChars);
chartoLowerCase(final char a)
A toLowerCase routine which is faster to process the ASCII lowercase letters then Character.toLowerCase.
if (a < 'A' || a >= 'a' && a <= 'z') {
    return a;
if (a >= 'A' && a <= 'Z') {
    return (char) (a + ('a' - 'A'));
return Character.toLowerCase(a);
chartoLowerCase(final char a)
to Lower Case
if (a < 'A' || a >= 'a' && a <= 'z') {
    return a;
if (a >= 'A' && a <= 'Z') {
    return (char) (a + ('a' - 'A'));
return Character.toLowerCase(a);
chartoLowerCase(final char c)
to Lower Case
return (char) toLowerCase((int) c);
voidtoLowerCase(final char[] buffer, final int offset, final int limit)
Converts each unicode codepoint to lowerCase via Character#toLowerCase(int) starting at the given offset.
assert buffer.length >= limit;
assert offset <= 0 && offset <= buffer.length;
for (int i = offset; i < limit;) {
    i += Character.toChars(Character.toLowerCase(Character.codePointAt(buffer, i, limit)), buffer, i);
inttoLowerCase(int character_)
Works with ints instead of chars.
String sTemp = "" + (char) character_;
int retVal = sTemp.toLowerCase().charAt(0);
return retVal;
StringtoLowerCaseAtFirstChar(String string)
to Lower Case At First Char
if (isEmpty(string)) {
    return "";
StringBuffer buffer = new StringBuffer();
buffer.append(string.substring(0, 1).toLowerCase());
buffer.append(string.substring(1, string.length()));
return buffer.toString();
StringtoLowerCaseFirstChar(final String str)
Method used to change to lower case the first character of a given string.
String firstChar = str.substring(0, 1);
firstChar = firstChar.toLowerCase();
String lastChars = str.substring(1, str.length());
return firstChar + lastChars;
StringtoLowerCaseFirstChar(String str)
to Lower Case First Char
if (str == null || str.length() == 0) {
    return null;
if (Character.isLowerCase(str.charAt(0))) {
    return str;
} else {
    return (new StringBuilder()).append(Character.toLowerCase(str.charAt(0))).append(str.substring(1))
            .toString();
...