Code Input file: int1to100.txt /* ReadAllLines.java David Klick 2018-01-08 CIS 260 This program reads in all the lines from a file at once into a list and then displays them. */ import java.nio.charset.StandardCharsets; import java.nio.file.Files; import java.nio.file.FileSystems; import java.nio.file.Path; import java.util.List; public class ReadAllLines { public static void main(String[] args) { String filename = "int1to100.txt"; List contents = null; try { Path path = FileSystems.getDefault().getPath(filename); contents = Files.readAllLines(path, StandardCharsets.UTF_8); } catch (Exception e) { System.err.printf("Error reading file %s%n", filename); System.exit(1); } for (String line : contents) System.out.println(line); } }