marcelinalinaa / CarSimulator

Autonomous car driving simulation in Java which implements object-oriented programming.
0 stars 2 forks source link

Coords.java #6

Closed marcelinalinaa closed 3 years ago

marcelinalinaa commented 3 years ago

package project;

public class Coords { public int x; public int y; public Coords(int x, int y){ x = this.x; y = this.y; } public boolean equals(Object o) { Coords c = (Coords) o; return c.x == x && c.y == y; } /public int hashCode() { return new Integer(x + "0" + y); } / }