EOFException - how to handle?

后端 未结 7 1099
迷失自我
迷失自我 2020-11-27 17:11

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

相关标签:
7条回答
  • 2020-11-27 17:54

    You can use while(in.available() != 0) instead of while(true).

    0 讨论(0)
提交回复
热议问题