This commit is contained in:
xixu-me committed 2024-05-24 22:13:32 +08:00
1 parent 70ffe81142
commit 29591a5f9d
21 files changed
+17 -12

No files matched your search

@@ -20,7 +20,7 @@ public class DateCalculation {
System.out.println(ans);
}
public static boolean isLeapYear(int year) {
static boolean isLeapYear(int year) {
return year % 4 == 0 && year % 100 != 0 || year % 400 == 0;
}
}