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




ToLower() - Method


ToLower() Method


The ToLower() Method is used to convert all the characters/letters of the String in lower case.


Example :



public class MyApplication
{
    public static void Main(string[] args)
    {
       	var x = "HeLLo";
	    var y = x.ToLower();
	 
        System.Console.WriteLine("The String in lower case is : "+y);
     }
}


Output :



  The String in lower case is : hello

In the above code, we have declared a String HeLLo, in which the letters H and two L's are in upper case.


var x = "HeLLo";
C_Sharp


So, we have used the ToLower() Method to convert them to lower case and assign to a variable y.


var y = x.ToLower();
C_Sharp