Posted by: sajhauser September 28, 2006
Login in to Rate this Post:
0
?
Slackdemic, the definition of leap year is wrong in your isLeap(int y) method.
1. Every year divisible by 4 is a leap year.
2. But every year divisible by 100 is NOT a leap year
3. Unless the year is also divisible by 400, then it is still a leap year.