Jonathan Spiker CS239-3 Lab 4 Lab: Experimenting with Input/Output 3.3. What was the first error generated by the compiler? Rooter.java:15: cannot find symbol symbol : class PrintWriter location: class Rooter PrintWriter screen; ^ The PrintWriter class was not imported so it could not be used. 3.4. What line did you need to add? import java.io.*; 3.6. What was the first error generated by the compiler this time? Rooter.java:17: cannot find symbol symbol : class Scanner location: class Rooter Scanner keyboard; ^ The Scanner class was not imported so it could not be used. 3.7. Fix this error. What line did you need to add? import java.util.Scanner; 4.4. Why was no output generated? The buffer has not been flushed. 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 + V 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 file specified could not be found because it was not in the working directory. 5.8 What changes did you need to make? I added a line after the today and name object declarations: File dates; 5.10. What changes did you need to make? I added two lines to the instantiation section: name = args[0]; dates = new File(name); 5.12. What changes did you need to make? I replaced the System.in for the Scanner with dates to use the command lin argument file. I also had to use a try catch block to catch the possible FileNotFoundException 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? I created two sets of objects for all the input and output classes, then edited processDates to process each file instead of just one. 6.4. What output was generated? Today's Date: 23 January 2007 Birthday: Chita Rivera Birthday: John Hancock No other information was printed because there was not and assignment for the 23rd.