Point2 can now overrides toString().
This commit is contained in:
parent
4f411c42fb
commit
0886412cfb
@ -29,4 +29,9 @@ public class Point2 {
|
|||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
return hash;
|
return hash;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return String.format("(%d, %d", x, y);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user