The program reads text from a specific file.
List<String> lines = Files.readAllLines("path", StandartCharsets.UTF8); for(String lines:source){ Next comes the regular expression that finds certain lines from the file. How to make the numbering of each line when reading and at the end to output the regular lines found in the cannibal along with the line number?