File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 » Professional 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: 144


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: 2686
Because you're not closing the input stream. Read the javadoc for Console ? Particularly the main description.


Joanne
 
IntelliJ Java IDE
 
subject: Console.reader.close() misunderstanding
 
Threads others viewed
How to display InputSream dynamically on a JSP page?
Continious user input
ioexception
K&B book Console example Scjp6
K&B book Console example Scjp6
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture