Convert String to Lower Case - Java Language Basics

Java examples for Language Basics:String

Description

Convert String to Lower Case

Demo Code

 
public class Main {
 
        public static void main(String[] args) {
               /*from   w w  w  .j  a  v  a2 s.c o  m*/
                String str = "STRING TOLOWERCASE";
                 String strLower = str.toLowerCase();
                 
                 System.out.println("Original String: " + str);
                 System.out.println("String changed to lower case: " + strLower);
        }
}
 

Result


Related Tutorials