I have the object below.
public class Coords {
public int x;
public int z;
public Coords(int x, int z) {
this.x = x;
this.z = z;
}
}
How can this implement Compareable? Im not sure what the compareTo method should be doing.
@Override
public int compareTo(Object o) {
// TODO Auto-generated method stub
return 0;
}