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)

Reply

To combat spam, please enter the code in the image.

Could not find what you are looking for? Search Java Examples




Feel Tired? Read Jokes & Inspirational Stories, Play Games!