* @author - Ryan Tighe * @version - V1 - January 22, 2007 * 2:30 - 3:20 PM * Lab 4 Lab: Experimenting with Input/Output 3.3. What was the first error generated by the compiler? 3.3A Rooter.java:21: cannot find symbol 3.4. What line did you need to add? 3.4A import java.io.PrintWriter; 3.6. What was the first error generated by the compiler this time? 3.6A Rooter.java:24: cannot find symbol 3.7. Fix this error. What line did you need to add? 3.7A import java.util.Scanner; 4.4. Why was no output generated? 4.4A The screen is waiting for input prior to printing out the "Enter a number:" prompt since the buffer has not been flushed. 4.5. Fix this mistake. What line did you add? 4.5A screen.flush(); after the Prompt 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? 4.6A Hit CTRL-Z to exit normally. 5.4. What output was generated? 5.4A Today's Date: 22 January 2007 Birthday: Sir Francis Bacon Birthday: George Foreman 5.6. What happened and why? 5.6A There is an error output that says the file does not exist because the operating system checks for the file which is not in the directory. 5.8 What changes did you need to make? 5.8A Add File dates; as a declaration. 5.10. What changes did you need to make? 5.10A The instantiation dates = new File(args[0]); 5.12. What changes did you need to make? 5.12A Needed to change dateScanner(System.in) to dateScanner(dates), add Try/Catch block around dateScanner in case of FileNotFoundException. 5.14. What output was generated? 5.14A Today's Date: 22 January 2007 Birthday: Sir Francis Bacon Birthday: George Foreman 6.2. What changes did you need to make? 6.2A Added a for loop for the length of the array to run through for each file input. 6.4. What output was generated? 6.4A 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