We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8175dc commit 6c2e99bCopy full SHA for 6c2e99b
1 file changed
src/main/java/com/mindee/geometry/Point.java
@@ -35,4 +35,9 @@ public boolean equals(Object object) {
35
public int hashCode() {
36
return x.hashCode() + y.hashCode();
37
}
38
+
39
+ @Override
40
+ public String toString() {
41
+ return String.format("(%s,%s)", x, y);
42
+ }
43
0 commit comments