• Post Reply Bookmark Topic Watch Topic
  • New Topic

Console.reader.close() misunderstanding  RSS feed

 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Why we can read a line and the program prints if further if we close the reader?
 
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because you're not closing the input stream. Read the javadoc for Console ? Particularly the main description.
 
Something about .... going for a swim. With this tiny ad ...
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!