Re: Beginners calendar exercise
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?
|