Update
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user