Java Char Lower Case toLowerCase(char c)

Here you can find the source of toLowerCase(char c)

Description

to Lower Case

License

LGPL

Declaration

public static char toLowerCase(char c) 

Method Source Code

//package com.java2s;
/**//w  ww . j av a  2 s  .c o m
* Converts a line of text into an array of lower case words using a
* BreakIterator.wordInstance().
* <p>
* 
* This method is under the Jive Open Source Software License and was written
* by Mark Imbriaco.
* 
* @param text
*          a String of text to convert into an array of words
* @return text broken up into an array of words.
*/

public class Main {

    public static char toLowerCase(char c) {
        return Character.toLowerCase(c);
    }

    public static String toLowerCase(String s) {
        if (s == null)
            return null;
        else {
            return s.toLowerCase();
            /*
            * StringBuffer stringbuffer = new StringBuffer(); for(int i = 0; i <
            * s.length(); i++) stringbuffer.append(toLowerCase(s.charAt(i)));
            * 
            * return stringbuffer.toString();
            */
        }
    }
}

Related

  1. toLowerCase(char b)
  2. toLowerCase(char c)
  3. toLowerCase(char c)
  4. toLowerCase(char ch)
  5. toLowerCase(char ch)
  6. toLowerCase(char[] chars)