Sunday 8 September 2013

java program to convert a string from lower case to upper case

import java.lang.*;
import java.io.*;
public class key
{
public static void main(String args[])throws IOException
{
try
{
   BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
   System.out.println("enter the input from the key board");
   String str=br.readLine();
   System.out.println("Data enterd is "+str.toUpperCase());
   }
   catch(Exception e)
   {
   System.out.println(e);
   }
   }
   }