Java String Lower Case toLowerCase(String s)

Here you can find the source of toLowerCase(String s)

Description

Returns a string with all alphabetic characters converted to lower case.

License

LGPL

Parameter

Parameter Description
s input string

Return

a string in lower case.

Declaration

public static String toLowerCase(String s) 

Method Source Code

//package com.java2s;
/*/*from w w w.  jav a2  s  .  com*/
 *   This software is distributed under the terms of the FSF 
 *   Gnu Lesser General Public License (see lgpl.txt). 
 *
 *   This program is distributed WITHOUT ANY WARRANTY. See the
 *   GNU General Public License for more details.
 */

public class Main {
    /**
     * Returns a string with all alphabetic characters converted to lower case.
     * 
     * @param s input string
     * @return a string in lower case.
     */
    public static String toLowerCase(String s) {
        return (s != null) ? s.toLowerCase() : s;
    }
}

Related

  1. toLowerCase(String candidate)
  2. toLowerCase(String input)
  3. toLowerCase(String input)
  4. toLowerCase(String name)
  5. toLowerCase(String pString)
  6. toLowerCase(String s)
  7. toLowerCase(String s)
  8. toLowerCase(String s, int start, int end)
  9. toLowerCase(String source)