Menu
Question Index
...

Write a program to convert all letters in a string to upper case

Input Output
Hello World HELLO WORLD
University UNIVERSITY
champion CHAMPION



class ConvertToUpperCase
{
    public static void main(String s[])
    {
        String inputString = "Hello World";
        String outputString = convertToUpperCase(inputString);
        System.out.println("The string is " + outputString);    

    }


    public static String convertToUpperCase(String givenString)
    {
    }  

}

Doubts

Problems

Topic: toLowerCase() And toUpperCase() Methods In Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App