Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean equals(Object obj) {
- if (!(obj instanceof Coord)) {
- return false;
- }else if (obj == this) {
- return true;
- }
- Coord other = (Coord)obj;
- return (x == other.x && y == other.y);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement