PDA

View Full Version : Why in.readline() deprecated in java6.0.. What is the feature superseded it..


chandujalli
Jul 3, 2010, 09:00 PM
Just a quick question.

chandujalli
Jul 3, 2010, 09:11 PM
How shall I update my subject..
Am in searching for job on java platform...
Do hel me.

yesbeckjs
Jul 13, 2010, 06:08 PM
If you are using the DataInputStream Class, it is suggested to use the method: BufferedReader.readLine();

Example:

Old way


DataInputStream d = new DataInputStream(in);



New way


BufferedReader d = new BufferedReader(new InputStreamReader(in));



You can read more about it here: http://download.oracle.com/docs/cd/E17476_01/javase/1.4.2/docs/api/java/io/DataInputStream.html