• Post Reply Bookmark Topic Watch Topic
  • New Topic

stream closed before entering a String  RSS feed

 
Kee Kee moon
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I use InputStreamRead, but stream closed before I enter a string. How do you resolve the problem.

BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

Thanks
 
Rob Camick
Ranch Hand
Posts: 2828
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post your SSCCE that demonstrates the problem.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!