aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Console.reader.close() misunderstanding Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Console.reader.close() misunderstanding" Watch "Console.reader.close() misunderstanding" New topic
Author

Console.reader.close() misunderstanding

Vadim Vararu
Ranch Hand

Joined: Jan 03, 2009
Posts: 147


Why we can read a line and the program prints if further if we close the reader?


If you think you've done too much, usually it means you've done too few.
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3011
    
    9
Because you're not closing the input stream. Read the javadoc for Console ? Particularly the main description.


Joanne
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Console.reader.close() misunderstanding
 
Similar Threads
ioexception
How to display InputSream dynamically on a JSP page?
K&B book Console example Scjp6
Continious user input
K&B book Console example Scjp6