Java Program to convert lower case to upper case

Get a String and convert the lower case characters to upper case Characters

Sample Input 1:

Hello

Sample Output 1:

HELLO

Program or Solution

				
			
					
//Convert LowerCase Characters To UpperCase Characters...

import java.util.*;

class Program
{
 public static void main(String args[])
 {
    String str1,str2;
    Scanner sc=new Scanner(System.in);

   System.out.println("Enter The String:");
   str1=sc.next();

   str2=str1.toUpperCase();

   System.out.println("The Output Is:"+str2);
 }
}


			
				
			

Program Explanation