/* TestException2.java CIS 260 Dave Klick 2016-02-03 This program will not compile because checked exceptions are not declared to be thrown and they are not caught. */ import java.io.*; public class TestException2 { public static void main(String[] args) { for (String filename : args) displayFile(filename); } private static void displayFile(final String fname) { 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"); } }