Q:

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

0

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

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 upper_str = str.toUpperCase();
        System.out.println("Original String: " + str);
        System.out.println("String in uppercase: " + upper_str);
    }
}

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