Bryan Wiseman 1/22/07 CS 239 Lab: Experimenting with Input/Output 3.3. What was the first error generated by the compiler? Could not find Scanner or Printwriter 3.4. What line did you need to add? Import java.util.*; 3.6. What was the first error generated by the compiler this time? Could not find PrintWriter 3.7. Fix this error. What line did you need to add? Import java.io.PrintWriter; 4.4. Why was no output generated? The first output was missing a key component.(flush must come after println) 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? Control c 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? Could not find the file. There is no file called anniversary. 5.8 What changes did you need to make? You have to add the dates variable to the program and instantiate it the command line argument (args[0]). 5.10. What changes did you need to make? Set DataScanner to dates and make a try catch block for a file not found exception. 5.12. What changes did you need to make? You had to make the scanner scan dates and not look for the file itself. 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? Make a loop to look for all files and compare them individually 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