Re: how to use readLine() to read from command prompt???
Wednesday, August 18, 2004 01:22 AM
there are actully 2 ways i know
One is the method in DataInputStream whcich is bit buggy
better use BufferedReader
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
String obj= r.readLine();
Readers and Writers are to be used when reading characters.