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
Put your code inside the try catch block: i.e :
try{ if(in.available()!=0){ // ------ } }catch(EOFException eof){ // }catch(Exception e){ // } }