UsingSystemClasses, Part 1 QUESTION: About how many minutes do you think it will take you to complete Part 1 of UsingSystemClasses? QUESTION: What time is it now? QUESTION: What does the showMessageDialog method do? QUESTION: What happens if you try to run the program a second time? What if you try to recompile it after you've run it? Question: Suppose you added more statements after the System.exit(0) statement. Would they ever be exectued? QUESTION: What error message do you now get when you try to compile the project? Question: Explain the role of the import statement. QUESTION: What does an asterisk in an import statement tell the compiler? Question: What effect does the \n have on the way the message is displayed? QUESTION: How can you find out what package (e.g. javax.swing) to import in order to be able to access a class? QUESTION: Does it seem fair that you are doing all the typing and the program still says that Prof. Merkle wrote it? QUESTION: What compilation error do you get when you reference a variable that has not been declared? QUESTION: Explain the roles of the declaration statement, the new operator, and the assignment statement. QUESTION: What error message do you get when you declare a Date object without importing the appropriate package? QUESTION: What packages contain Date classes? QUESTION: What error message do you get when you reference a class that is defined in more than one imported package? QUESTION: Which package provides a Date constructor that allocates a Date object and initializes it so that it represents the time at which it was allocated? Question: Why does referencing the startTime variable when it has been declared but not assigned cause a compilation error? Question: List eight pieces of information that are included in the value returned by the toString method of the Date class. QUESTION: What time is represented by the startTime object? QUESTION: What event's duration has the largest impact on the difference between the times represented by the startTime and endTime objects? QUESTION: What package contains the SimpleDateFormat class? Question: What are the six pieces of information that are included in the String objects resulting from using the default SimpleDateFormat value to format Date objects? Question: Explain the meaning of each part of the String object used to initialize theFormat. QUESTION: How many showInputDialog methods does the JOptionPane class have? What do they do? Question: What is the return type of the method call in the statement that you just added? QUESTION: What does the new operator do? What is special about it's use in the context of String objects? QUESTION: Which package must you import so that you can create dialog windows? QUESTION: What class do you use to create dialog windows? QUESTION: What method do you use to create a dialog window to display a message? QUESTION: What method do you use to create a dialog window to display a message and prompt the user for a String input? QUESTION: How much time did you spend on Part 1 of UsingSystemClasses? Compare your answer to how much time you had estimated that you would spend. You receive full credit no matter how far off your estimate is!