Many thanks :)
Use System.in() - you probably want to wrap a BufferedReader round it
and read a line at a time.
--
Jon Skeet - <sk...@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
line = System.in(); // not sure, please correct if wrong
BufferedReader input = new BufferredReader(line);
if (input == null) // null being Enter??
// continue executing
Thanks :)
"Jon Skeet" <sk...@pobox.com> wrote in message
news:MPG.1634c8f07...@mrmog.peramon.com...
No, it's more like:
BufferedReader br = new BufferedReader (System.in());
String line = br.readLine();
with appropriate IO exception handling etc.
However, I strongly suggest you learn the basics of Java before trying
this. Ignore console input for the moment, and just write programs that
use console output. Then use files for input and output, then go for
console input.