Name: Chris MacDonald Date: 1/22/07 Lab: Experimenting with Input/Output 3.3. What was the first error generated by the compiler? Rooter.java:16: cannot find symbol symbol : class PrintWriter location: class Rooter 3.4. What line did you need to add? import java.io.PrintWriter; 3.6. What was the first error generated by the compiler this time? Rooter.java:19: cannot find symbol symbol : class Scanner location: class Rooter 3.7. Fix this error. What line did you need to add? import java.util.Scanner; 4.4. Why was no output generated? screen.println won't produce any output to the computer screen without a screen.flush() 4.5. Fix this mistake. What line did you add? screen.flush(); 4.6. What do you need to type in the terminal window (as a response to the prompt) in order to make this application terminate normally? Ctrl+z 5.4. What output was generated? Today's date along with 2 people that have birthdays today. 5.6. What happened and why? "The system cannot find the specified file" because it the program isn't declaring a File. 5.8 What changes did you need to make? File dates; 5.10. What changes did you need to make? dates = new File(args[0]); 5.12. What changes did you need to make? try { dateScanner = new Scanner(dates); } catch(FileNotFoundException fnfe) { System.out.println("File " + args[0] + " not found -- exiting."); System.exit(0); } 5.14. What output was generated? The same output as question 5.4 6.2. What changes did you need to make? for(int i = 0; i < args.length; i++) { dates = new File(args[i]); screen.printf(Locale.US, "\nToday's Date: %1$te %1$tB %1$tY\n", today); screen.flush(); try { dateScanner = new Scanner(dates); } catch(FileNotFoundException fnfe) { System.out.println("File " + args[0] + " not found -- exiting."); System.exit(0); } processDates(today); } 6.4. What output was generated? Today's Date: 22 January 2007 Birthday: Sir Francis Bacon Birthday: George Foreman Today's Date: 22 January 2007 Programming Assignment 1 Due Review the Java tutorial on Exceptions