📅  最后修改于: 2022-03-11 14:52:30.333000             🧑  作者: Mango
public static boolean isLeapYear(int year) {
if (year % 4 != 0) {
return false;
} else if (year % 100 != 0) {
return true;
} else if (year % 400 != 0) {
return false;
} else {
return true;
}
}