Pages

Monday 30 May 2011

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

0 comments
 


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

Leave a Reply