Q: | When I compile my code, I get some warning about deprecated methods. Should I worry about this? |
A: | Yes. Deprecated methods are no good - don't use them. They are probably coming from the Date class. Any of the deprecated methods that you wanted to call in the Date class can be performed by the DateFormat or Calendar classes. Please see Java API 1.4 for information about these classes. |
Q: | Is there anything special I should know about the way Java handles dates? |
A: | Yes, there is. Apparently, Java numbers the months from 0-11, rather than 1-12. Be careful! Thanks to Rebekah Vikrey for this faq. |
Q: | How do we submit the assignment? |
A: | Read the documentation file /usr/class/cs193j/bin/README-submit or see the link from the main course webpage. |
Q: | How do I check if a line is a comment line? |
A: | We know a comment line starts with "#" There is a method in the String class that tests exactly that, i.e., a method in String returns true if it "startsWith" a given string (hint hint) |
Q: | If I make a table cell with colspan greater than 1000, my browser is not happy. What can I do to assuage that? |
A: | The easiest solution is to follow the advice in the assignment handout and round everything to 5-minute multiples. This way you are guaranteed that have all table cells with colspan less than 1000. Other solutions are possible as well, but this is probably the simplest. |
Q: | Can an event end at midnight (i.e., 12:00 AM)? |
A: | No, as specified in the handout, events cannot stretch over into the next day, and an event that ended at midnight would be encroaching on the next day's time. All events will end at the latest 23:59. |
Q: | If I submit at 1:00AM past the deadline, am I an hour late or a day late? |
A: | Submitting an assignment at anytime after the deadline but before the midnight of the second day is considered one day late; if you have free late days you just used up one. |