Příklad
public class
ClassA
implements
Compare {
public int
compare (Object o) {
// ...
}
}
Řešení
Pro metodu Compare použijte vždy standardní signaturu - public int compare(Object o1, Object o2).
public class
ClassA
implements
Compare {
public int
compare (Object o1, Object o2) {
//...
}
}