Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. public boolean equals(Object obj) {
  2. if (!(obj instanceof Coord)) {
  3. return false;
  4. }else if (obj == this) {
  5. return true;
  6. }
  7. Coord other = (Coord)obj;
  8. return (x == other.x && y == other.y);
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement