From 0886412cfb3f68530f5ec2cb495dd3a3fa0b442c Mon Sep 17 00:00:00 2001 From: Harrison Date: Sun, 26 Apr 2020 20:56:44 -0500 Subject: [PATCH] Point2 can now overrides toString(). --- .../java/ca/recrown/islandsurvivalcraft/Types/Point2.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/ca/recrown/islandsurvivalcraft/Types/Point2.java b/src/main/java/ca/recrown/islandsurvivalcraft/Types/Point2.java index 481680c..debc5e8 100644 --- a/src/main/java/ca/recrown/islandsurvivalcraft/Types/Point2.java +++ b/src/main/java/ca/recrown/islandsurvivalcraft/Types/Point2.java @@ -29,4 +29,9 @@ public class Point2 { public int hashCode() { return hash; } + + @Override + public String toString() { + return String.format("(%d, %d", x, y); + } } \ No newline at end of file