+ 1
To make a calender using java
It must take the input from the user...that is month and year and it must show the calendar of that month....The range of the calendar should be about 50 years
6 Answers
+ 10
have u tried yourself first ?
+ 3
yup I've tried...and yes it's working...I've made it for 1 year that is 2018..... I've used switch case for it....but I hope there is a better way coz this method will take a long time to make for 50 years
+ 3
There is a formula for the day of week, if you need that. Try Google.
Otherwise the length of month is always the same, except for February. So you just have to know, whether you have a leap year.
+ 3
Yup I know about that , it's called Zeller's Rule aand I've made another program based on it...but don't know to use it with my 1st programđ¶...Any ideas??
+ 1
Do you guys want me to post both the programs here??
0
What result do you expect for that exercise?
I suppose a Map from day of month to week day?
Find out how many days your month has.
Make a loop that determines the day of week for each day in month.
Print each pair.