tracks/groovy/exercises/leap/Example.groovy in trackler-2.2.1.10 vs tracks/groovy/exercises/leap/Example.groovy in trackler-2.2.1.11
- old
+ new
@@ -1,9 +1,9 @@
-class Year {
+class Leap {
Integer year
- Year(Integer year) {
+ Leap(Integer year) {
this.year = year
}
def isLeapYear() {
(year % 4) == 0 && ((year % 400) == 0 || (year % 100) != 0)