Java

Program to convert all the characters of a string to lowercase.

Program to convert all the characters of a string to lowercase.
public class demo1 
{
       public static void main(String[] args)
          {
              String str = "HELLO";     
              String lowerStr = str.toLowerCase();
              System.out.println("Original String: " + str);
              System.out.println("String in lowercase: " + lowerStr);
          }
}
Nikhil Juneja

Passionate software developer and technical contributor at TutorialsLink.