DOWNLOAD

Get our toolbar!

Saturday, 30 April 2011

// 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


0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More