+ 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

28th Jan 2018, 9:25 AM
Mrinal Kumar
Mrinal Kumar - avatar
6 Respostas
+ 10
have u tried yourself first ?
28th Jan 2018, 9:33 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 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
28th Jan 2018, 9:51 AM
Mrinal Kumar
Mrinal Kumar - avatar
+ 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.
28th Jan 2018, 2:48 PM
1of3
1of3 - avatar
+ 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??
28th Jan 2018, 3:23 PM
Mrinal Kumar
Mrinal Kumar - avatar
+ 1
Do you guys want me to post both the programs here??
28th Jan 2018, 3:27 PM
Mrinal Kumar
Mrinal Kumar - avatar
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.
28th Jan 2018, 8:02 PM
1of3
1of3 - avatar