posted 23 years ago
In English your statements read:
If (year is evenly divisible by 400), leap = true
Otherwise if (year is not evenly divisible by 400, but is evenly divisible by 100), leap is false (but you never changed it because the first if statement was false or else you wouldn't be in this statement)
Otherwise if (year is not evenly divisible by 400 and year is not evenly divisible by 100, but is evenly divisible by 4), leap is true.
else if statements are mutually exclusive.
JavaBeginnersFaq
"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt