Meaningless Drivel is fun!*
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
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: 3606
    
  60

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.
 
Consider Paul's rocket mass heater.
 
subject: stream loop not ending
 
Similar Threads
thread /process does not terminate
Create a process from Servlet
how to finish the process forcibly?
java gui freezes after executing action event
streams