You are here: Home / Topics / toLowerCase() method example in Java

toLowerCase() method example in Java

Filed under: Java on 2023-08-23 18:51:33

// Program to explain the following String function : 
// String toLowerCase()

class  MtoLowerCase
{
public static void main( String args[ ] )
{
 String s1 = "Java Programming Examples.";
 String s2 = s1.toLowerCase();

 System.out.println( " Original  String : " + s1 );
 System.out.println( " LowerCase String : " + s2 );
}
}


Output:

 Original  String : Java Programming Examples.
 LowerCase String : java programming examples.

About Author:
J
Java     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.