Table of Contents

toLowerCase

toLowerCase()
toLowerCase(locale);

description of toLowerCase

returns the String, converted to lowerspace.

example of toLowerCase in java

package lang;
 
public class Lang {
 
    public static void main(String[] args) {
 
        String str = "TEST 1234";
 
        str = str.toLowerCase();
        // str = str.toLowerCase(Locale.SIMPLIFIED_CHINESE); // for Simplified Chinese
 
        System.out.println(str+" in lowercase");
    }
}

output of toLowerCase

 test 1234 in lowercase