package com.vidyasource.tutorial.comparison;

import java.util.Comparator;

public class MakeComparator implements Comparator<Car> {

    @Override
    public int compare(Car car, Car car2) {
        return car.getMake().compareTo(car2.getMake());
    }
}
@@ -246,10 +246,117 @@
 );%0A    %7D
+%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        return obj instanceof MakeComparator;%0A    %7D
 %0A%7D

Add equals