Search

// write a program in java which converts a lower case to upper case string.


CODE 

import java.io.*;
import java.lang.*;
class UpperCase
{
public static void main(String args[ ]) throws IOException
{
BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter the lowercase character : ");
String s = buff.readLine();
System.out.println("Upper case of "+s +" is "+s.toUpperCase());
}
}

OUTPUT DISPLAY


Share this article :
 

Post a Comment

 
Support : everytricks4.blogspot.in/ | Johny Template | Mas Template
Copyright © 2011. Computer Tricks - All Rights Reserved
Creating Website Published by
Proudly powered by Blogger