java calendar
Author |
Message |
Fonzie
|
Posted: Mon Nov 13, 2006 4:11 pm Post subject: java calendar |
|
|
I need to use the java calendar class (in the standard api) for an assignment I'm doing. The class is abstract so I can't instance it, but the method I need to use is set, which cannot be invoked on calendar. I'm not really sure how set is supposed to be used here.
As a work around I used the GregorianCalendar class and used set on it. However, now all my answers are slightly different from what the autochecker wants it to be.
exactly how is set ever supposed to be used? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
wtd
|
Posted: Mon Nov 13, 2006 4:38 pm Post subject: (No subject) |
|
|
Please post the code you've written.
If it's formatted by RTP, I may make fun of you. ![Wink Wink](http://compsci.ca/v3/images/smiles/icon_wink.gif) |
|
|
|
|
![](images/spacer.gif) |
Fonzie
|
Posted: Mon Nov 13, 2006 9:22 pm Post subject: (No subject) |
|
|
I'll post my code tomorrow at around 3:00, as this is just a small asignment and didn't think to e-mail it to myself. I need to access it from school. Until then, do you have any idea of how calendar is supposed to be weilded? |
|
|
|
|
![](images/spacer.gif) |
|
|