行のファイル番号を取得Java1.8

。Files.lines(Paths.get( "aaa.txt"))カウント();

おすすめ

転載: www.cnblogs.com/changfangxing/p/10932248.html