Tutorials

Java String Methods


String toLower() method


In java toLowerCase( ) is used to convert the uppercase letters of the given String to lowercase letters.

 

Example:


public class toLowerDemo {

      public static void main(String[] args) {

            String str = "Mukesh Ti";           
            System.out.println(str.toLowerCase());
      }
}

OUTPUT:

mukesh ti



Please Share this page
Views : 56