Ryan Patterson 1/22/07 Lab: Experimenting with Input/Output 3.3. What was the first error generated by the compiler? It no could not find the symbol for the PrintWriter class. 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? It could not find the symbol for the Scanner class. 3.7. Fix this error. What line did you need to add? Import java.util.Scanner; 4.4. Why was no output generated? Because the buffer was not flushing the stream. The program writes to the buffer just as it takes input from the buffer, therefore it must flush the buffer to output to the screen. 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: 22 January 2007 Birthday: Sir Francis Bacon Birthday: George Foreman 5.6. What happened and why? The program failed because it could not find the file. 5.8 What changes did you need to make? I had to write in “File” and “dates”. 5.10. What changes did you need to make? I needed to add a statement initializing dates to the first element of the argument array. 5.12. What changes did you need to make? 5.14. What output was generated? 6.2. What changes did you need to make? 6.4. What output was generated?