Submitted by Anonymous on Sun, 10/25/2009 - 09:07.
The logic of leap year is wrong.... A year shouldalso be divisble by 400 to be a leap year...
line no 16 should be replaced by
if(year % 4 == 0 && year % 400 == 0)
Reply
Could not find what you are looking for? Search Java Examples
WRONG CODE
The logic of leap year is wrong.... A year shouldalso be divisble by 400 to be a leap year...
line no 16 should be replaced by
if(year % 4 == 0 && year % 400 == 0)