Printing a Calendar from Given Month/Year

后端 未结 4 989
南笙
南笙 2021-01-25 03:36

I\'m working on a Java assignment and it involves printing a calendar after the user specifies a month and a year. I cannot use the Calendar or GregorianCalendar classes. My pro

4条回答
  •  醉梦人生
    2021-01-25 04:15

    This will fix the leap year issue

    if ((((i + h) % 7 == 0) || (i == numDays) && leap(year)))
    

提交回复
热议问题