Q:

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

0

Program to convert all the characters of a string to lowercase

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

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);
          }
}

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now