import java.io.*;
class InputTest
{
public static void main(String []args) throws IOException
{
byte [] bytes = new byte[20];
BufferedInputSt ream bis = new BufferedInputSt ream(System.in) ;
DataInputStream dis = new DataInputStream (bis);
String str = dis.readLine();
DataOutputStrea m dos = new DataOutputStrea m(System.out);
dos.writeUTF(st r.toUpperCase() );
dos.close();
System.out.prin tln("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\b in>javac InputTest.java
Note: InputTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecati on for details.
class InputTest
{
public static void main(String []args) throws IOException
{
byte [] bytes = new byte[20];
BufferedInputSt ream bis = new BufferedInputSt ream(System.in) ;
DataInputStream dis = new DataInputStream (bis);
String str = dis.readLine();
DataOutputStrea m dos = new DataOutputStrea m(System.out);
dos.writeUTF(st r.toUpperCase() );
dos.close();
System.out.prin tln("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\b in>javac InputTest.java
Note: InputTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecati on for details.
Comment