Learnerslesson
   JAVA   
  SPRING  
  SPRINGBOOT  
 HIBERNATE 
  HADOOP  
   HIVE   
   ALGORITHMS   
   PYTHON   
   GO   
   KOTLIN   
   C#   
   RUBY   
   C++   




String - toLowerCase() Method


String toLowerCase()


toLowerCase() replaces all uppercase letters to lowercase.


Example :



public class Test{
	public static void main(String[] arg){
		String firstString = "HeLLo"; 
		String lowerString=firstString.toLowerCase();     
		
		System.out.println("The new lower case String is : "+newString);
	}
}


Output :



  The new lower case String is : hello

Converts all the letters to lowercase.