Java Char Lower Case toLowerCase(CharSequence chars)

Here you can find the source of toLowerCase(CharSequence chars)

Description

to Lower Case

License

Open Source License

Declaration

public static CharSequence toLowerCase(CharSequence chars) 

Method Source Code

//package com.java2s;

public class Main {
    public static CharSequence toLowerCase(CharSequence chars) {
        StringBuilder builder = new StringBuilder();
        char c;//  w ww . jav  a 2  s  .  com
        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();
    }
}

Related

  1. toLowerCase(char ch)
  2. toLowerCase(char[] chars)
  3. toLowerCase(char[] cs)
  4. toLowerCase(char[] input)
  5. toLowerCase(char[] word, char[] buffer)
  6. toLowerCase(CharSequence string)
  7. toLowerCase(final char a)
  8. toLowerCase(final char a)
  9. toLowerCase(final char c)