you should use while (fileReader.hasNextLine()) 参考 http://stackoverflow.com/questions/8270926/while-eof-in-java
you should use while
(fileReader.hasNextLine())
参考 http://stackoverflow.com/questions/8270926/while-eof-in-java