public boolean isLeapYear() {
if ((year % 400 == 0 || year % 100 != 0) && (year % 4 == 0)) {
return true;
}
return false;
}
Preserving Knowledge
public boolean isLeapYear() {
if ((year % 400 == 0 || year % 100 != 0) && (year % 4 == 0)) {
return true;
}
return false;
}