### Question:
LineReader implements Iterable<String>, Closeable { public static int[] intsFrom(String file) throws FileNotFoundException { return intsFrom(new FileInputStream(file)); } 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 testReadInts() throws Exception { int[] theints = LineReader.intsFrom(LineReader.class .getResourceAsStream("LineReader_ints.txt")); assertEquals(4, theints.length); assertEquals(1, theints[0]); assertEquals(2, theints[1]); assertEquals(3, theints[2]); assertEquals(1, theints[3]); }
@Test public void testReadIntsQuoted() throws Exception { int[] theints = LineReader.intsFrom(LineReader.class .getResourceAsStream("LineReader_ints_quoted.txt")); assertEquals(4, theints.length); assertEquals(1, theints[0]); assertEquals(2, theints[1]); assertEquals(3, theints[2]); assertEquals(1, theints[3]); }