I'm stuck on what the assignment page calls the second "iteration" of this program. The description here is as follows:
The italic part is what I'm stuck on. I've read the Calendar Class API about a thousand times now and it's just not making any sense to my noobish Java mind. I use Eclipse for coding (and want to take a look at IntelliJ's IDEA just out of curiosity..), but using Eclipse's debug perspective I discovered that all those field values defined at the top of the Calendar API page are defined the moment I create an object of type Calendar. It's all based on the "now", the current time. I am to use an accessor method of Calendar to get the "week of year" as an integer, I suppose, and I just don't see how I can do that.
I've done some googling on the Calendar class and it seems programmers all around hate the way Java handles dates and times using the classes Calendar, SimpleDateFormat, Date, etc. I couldn't agree more, even if I don't know a fraction of what all those other users complaining about it must know..
I'm not quite sure how to get the "days and years" for both calendar objects either.. (that's in the next iteration of the program, so the next paragraph after the one I've quoted above).
Any help would be greatly appreciated. Of course I don't expect anybody to feed me the answer on a silver platter. ANY HELP will be appreciated. Tips, links, advice of any kind.. thanks in advance.
Excuse the length of this post.. but I figure if I'm precise and thorough in my initial post, it will help you help me better than if I kept the description very short, forcing you to ask further questions about details on the problem.
This post has been edited by moerl: 02 June 2006 - 10:36 PM