File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » I/O and Streams
Reply locked New topic

stream loop not ending

nitiish chinnaraju

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

Joined: Aug 22, 2010
Posts: 3728

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.
I agree. Here's the link:
subject: stream loop not ending
It's not a secret anymore!