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

后端 未结 0 762
陌清茗
陌清茗 2021-01-20 09:15
BufferedReader in;

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

This is how I would process a file line

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