mateusz58
8/30/2019 - 7:55 PM

FIleReadLines

File readlines

BufferedReader br = Files.newBufferedReader(Paths.get(filePath));
String output=br.lines().reduce((first,second)->second).orElse(null);
BufferedReader br = Files.newBufferedReader(Paths.get(filePath));
List<String>list=br.lines().collect(Collectors.toList());