Przykład
public class
ClassA
implements
Compare {
public int
compare (Object o) {
// ...
}
}
Rozwiązanie
Zawsze używaj standardowej sygnatury dla metody compare public int compare(Object o1, Object o2).
public class
ClassA
implements
Compare {
public int
compare (Object o1, Object o2) {
//...
}
}