### Question:
LineReader implements Iterable<String>, Closeable { public static List<String> linesFrom(String filePath) throws FileNotFoundException { return linesFrom(new FileInputStream(filePath)); } LineReader(InputStream stream); String getText(); String getText(String separator); static String asText(File f); @Override void close(); @Override Iterator<String> iterator(); static List<String> linesFrom(String filePath); static List<String> linesFrom(InputStream is); static int[] intsFrom(String file); static int[] intsFrom(InputStream is); static double[] doublesFrom(String file); static double[] doublesFrom(InputStream is);  }### Answer:
@Test public void testReadLines() throws Exception { List<String> theints = LineReader.linesFrom(LineReader.class .getResourceAsStream("LineReader_ints.txt")); assertEquals(4, theints.size()); assertEquals("1", theints.get(0)); assertEquals("2", theints.get(1)); assertEquals("3", theints.get(2)); assertEquals("1", theints.get(3)); }