What is the best way to read a text file two lines at a time in Java?

后端 未结 0 1687
时光说笑
时光说笑 2021-01-20 09:05
BufferedReader in;

String line;
while ((line = in.readLine() != null) {
    processor.doStuffWith(line);
}

This is how I would process a file line

相关标签:
回答
  • 消灭零回复
提交回复
热议问题