Point2 can now overrides toString().

This commit is contained in:
Harrison Deng 2020-04-26 20:56:44 -05:00
parent 4f411c42fb
commit 0886412cfb

View File

@ -29,4 +29,9 @@ public class Point2 {
public int hashCode() {
return hash;
}
@Override
public String toString() {
return String.format("(%d, %d", x, y);
}
}