String toLowerCase()

The string tolowercase() method is used to convert the string into lower case letters. It is used to convert the character of string into the lower case of the string. The return type of toLowerCase() is String. Let’s see the syntax and example of java string tolowercase() method

java string tolowercase
stringName.toLowerCase()

stringName: The name of string in which you want to convert in lower case letters.

class ExampleOfLowerCase
 {  
	 public static void main(String args[])
	 {    
		String name = "JAVA WINGS";  
		String lowerCase = name.toLowerCase();
		System.out.println("String converted into lower case letters = "+lowerCase);	
         }
}

Output: String converted into lower case letters = java wings

Leave a Comment