最近做poj2234,要求从键盘输入下图这样的形式,但是没有结束标志,C语言中可以用EOF表示读取结束,java中该怎么做到呢?
ringa_lee
you should use while (fileReader.hasNextLine())
(fileReader.hasNextLine())
Reference http://stackoverflow.com/questions/8270926/while-eof-in-java
you should use while
(fileReader.hasNextLine())
Reference http://stackoverflow.com/questions/8270926/while-eof-in-java