Andrew Herrington CS239 Section 1 1/22/07 Lab: Experimenting with Input/Output 3.3. What was the first error generated by the compiler? Rooter.java:8: cannot find symbol: Class PrintWriter 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:10: cannot find symbol: Class Scanner 3.7. Fix this error. What line did you need to add? import java.util.Scanner; 4.4. Why was no output generated? The PrintWriter was not initialized correctly with autoflush. 4.5. Fix this mistake. What line did you add? screen = new PrintWriter(System.out, true); 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? A series of doubles and then a "Ctrl-Z" to terminate the scanner. 5.4. What output was generated? Today's Date: 22 January 2007 Birthday: Sir Francis Bacon Birthday George Foreman 5.6. What happened and why? The system cannot find the file specified. anniversarys.txt is not in the working directory 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) { screen.println("File not found."); fnfe.printStackTrace(); } //end catch Wrote a try catch block that opens a file scanner and catches 5.14. What output was generated? Today's Date: 22 January 2007 Birthday: Sir Francis Bacon Birthday George Foreman 6.2. What changes did you need to make? for(int i = 0; i