| Java Programming Spring 2003 Homework #2 FAQ |
|   Course Syllabus   |   Java Programming Home   |   HW2 Assignment |
| Question: | For the last part of HW 2, StringCompare...on the website you say we need to convert the strings to all the same case, but there is a function that will compare the two strings regardless of case, can we use this? |
| Answer: | Yes (either way is fine). |
|   |   |
| Question: | For 2 of the 3 classes it says that you do not want any error messages printed out... do you want this for Substring as well? |
| Answer: | Yes, we want this for Substring as well. There should not be any error messages printed (for any of the classes). |
|   |   |
| Question: | I am catching an exception where i know one will come, but what about ones that I don't even know exist? Should i put a huge try{ }catch() around my code for a catch-all? |
| Answer: | You could try to determine all the possible exceptions that could come up (depending on what we provide as the command line arguments), but it is certainly easier to use one "catch-all" for this assignment. The general idea is to make sure that the system can't print any error messages, no matter what we put on the command line. |
|   |   |