This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes stream loop not ending Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » I/O and Streams
Reply locked New topic
Author

stream loop not ending

nitiish chinnaraju
Greenhorn

Joined: Jan 16, 2014
Posts: 13

In the above example why the while loop is not ending? after reading the input as "how are you"

how to make this loop end? i dont know. please explain me because i'm new to java
Martin Vajsar
Sheriff

Joined: Aug 22, 2010
Posts: 3717
    
  61

I'd say this is pretty much identical question (though a bit different code) to the other one of yours. Please continue the discussion there.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: stream loop not ending
 
jQuery in Action, 3rd edition