/*Matt Jenkins /section 2 /lab4 */ Lab: Experimenting with Input/Output 3.3. What was the first error generated by the compiler? -The first error is a cannot find symbol error referring to the PrintWriter declaration. 3.4. What line did you need to add? -To fix the error I needed to add import java.io.*; to the program. 3.6. What was the first error generated by the compiler this time? -The error during the second compile is a cannot find symbol error referring to the scanner declaration 3.7. Fix this error. What line did you need to add? - to fix this error, I needed to import java.util.Scanner; to the program 4.4. Why was no output generated? -Because it didn’t flush the buffer after it asked for a number. 4.5. Fix this mistake. What line did you add? -to fix this error I put screen.flush(); after the output 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? -If you type crtl + z then the program with terminate normally 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. 5.8 What changes did you need to make? -add File dates; to the main program. 5.10. What changes did you need to make? -I need to add dates = new File(args[0]); to instantiate the variable 5.12. What changes did you need to make? -I need to change dateScanner from reading in System.in to dates. 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 need to make dates an array and put it inside a for loops to initialize each file as a new element of the dates array. Also I had to put dateScanner inside the for loop so it would be a scanner for each file 6.4. What output was generated? -Today’s Date: 22 January 2007 Programing Assignment 1 Due Review the Java tutorial on Exceptions