I\'m a beginner java programmer following the java tutorials.
I am using a simple Java Program from the Java tutorials\'s Data Streams Page, and at runtime, it keeps
You can use while(in.available() != 0) instead of while(true).
while(in.available() != 0)
while(true)