I am an absolute beginner and need alot of help.
I have been set a task to display a calendar for any given month and year.
I made a start with a book but I cant get what I need from it.
So far I have used GregorianCalendar and I can display a calendar. I first thought it was todays date but it isn't it seems to be a random month and year. I need to be able to input a given month and year, and then display that.
I keep doing so much wrong with this I need alot of guidence but any help or advice would be appreciated. Thanks. :)
Beginners calendar exercise
Started by Jude, Nov 20 2007 08:08 AM
2 replies to this topic
#1
Posted 20 November 2007 - 08:08 AM
|
|
|
#2
Posted 20 November 2007 - 11:46 AM
Have you looked at the JavaDoc's for this class? GregorianCalendar (Java 2 Platform SE v1.4.2)
If you can ask a more specific question, I will be able to give you more guidance.
If you can ask a more specific question, I will be able to give you more guidance.
#3
Posted 07 September 2008 - 06:55 AM
Sorry, what is it that you need help with?
Creating a GregorianCalendar with a given month and year?
If that is the case, the API shows the one constructor of GregorianCalendar as
GregorianCalendar(int year, int month, int date)
So, all you have to do is simply create a GregorianCalendar, passing in the year,month and if not needed, any date.
I suppose you know how to handle user input?
Creating a GregorianCalendar with a given month and year?
If that is the case, the API shows the one constructor of GregorianCalendar as
GregorianCalendar(int year, int month, int date)
So, all you have to do is simply create a GregorianCalendar, passing in the year,month and if not needed, any date.
I suppose you know how to handle user input?


Sign In
Create Account

Back to top









