/* TestException3.java CIS 260 Dave Klick 2016-02-03 This program compiles because checked exceptions are declared to be thrown (but they are not caught and handled). */ import java.io.*; public class TestException3 { public static void main(String[] args) throws FileNotFoundException, IOException { for (String filename : args) displayFile(filename); } private static void displayFile(final String fname) throws FileNotFoundException, IOException { FileInputStream input = new FileInputStream(fname); int data = input.read(); while (data != -1) { System.out.print((char) data); data = input.read(); } input.close(); System.out.println("\n"); } }