public class Piste { public double x; public double y; /** * Returns a hash code value for the object. * @return a hash code value for this object. */ public int hashCode() { // TODO return 0; } public boolean equals(Piste p) { if (p == null) return false; return (this.x == p.x) && (this.y == p.y); } }