We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ad9a96 commit b3a55bbCopy full SHA for b3a55bb
src/main/java/com/fishercoder/solutions/_1496.java
@@ -50,11 +50,14 @@ public Coord(int x, int y) {
50
51
@Override
52
public boolean equals(Object o) {
53
- if (this == o) return true;
54
- if (o == null || getClass() != o.getClass()) return false;
+ if (this == o) {
+ return true;
55
+ }
56
+ if (o == null || getClass() != o.getClass()) {
57
+ return false;
58
59
Coord coord = (Coord) o;
- return x == coord.x &&
- y == coord.y;
60
+ return x == coord.x && y == coord.y;
61
}
62
63
0 commit comments