public static void main(String[] args) {
        try {
            // 文件流甚是牛逼
            Stream<String> stream = Files.lines(Paths.get("pom.xml"));
            stream.forEach(System.out::println);

        } catch (IOException e) {
            e.printStackTrace();
        }

  }

 

相关文章:

  • 2022-12-23
  • 2021-10-09
  • 2021-10-28
  • 2022-03-01
  • 2022-12-23
  • 2022-12-23
  • 2021-11-12
  • 2021-11-23
猜你喜欢
  • 2021-07-15
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
  • 2021-11-17
  • 2022-02-10
  • 2021-11-17
相关资源
相似解决方案