import java.io.*;
class InputTest
{
public static void main(String []args) throws IOException
{
byte [] bytes = new byte[20];
BufferedInputStream bis = new BufferedInputStream(System.in);
DataInputStream dis = new DataInputStream(bis);
String str = dis.readLine();
DataOutputStream dos = new DataOutputStream(System.out);
dos.writeUTF(str.toUpperCase());
dos.close();
System.out.println("End of program"); // this willnot be printed
}
}
This is the result when i try to complie this code help me out...!!!Java\jdk1.5.0\bin>javac InputTest.java
Note: InputTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.