Skip to content

Commit c3784a9

Browse files
committed
issue 18
1 parent c6ddca0 commit c3784a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎koans/src/intermediate/AboutComparison.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ public String toString() {
4848
}
4949
static class HorseSpeedComparator implements Comparator<RaceHorse> {
5050
public int compare(RaceHorse o1, RaceHorse o2) {
51-
return o1.age - o2.age;
51+
return o1.speed - o2.speed;
5252
}
5353
}
5454
static class HorseAgeComparator implements Comparator<RaceHorse> {
5555
public int compare(RaceHorse o1, RaceHorse o2) {
56-
return o1.speed - o2.speed;
56+
return o1.age - o2.age;
5757
}
5858
}
5959

0 commit comments

Comments
 (0)