daysInMonth = 29
is for February. If an user inputs a date like 2/29/2010. Then, the program compares the decide whether there is 29th day on February of 2010. Since there is no such date...
Type: Posts; User: cyspope
daysInMonth = 29
is for February. If an user inputs a date like 2/29/2010. Then, the program compares the decide whether there is 29th day on February of 2010. Since there is no such date...
I just started learning java language. One of my assignments for this week is writing a leap year program.
Basically, when a user input a year, month, and day, the program has to find out if the...