Fill in toString so that it returns the point written as (x, y).
toString
(x, y)
Notice main prints the object itself — System.out.println(p) — and Java automatically calls toString. The program prints (3, 4).
main
System.out.println(p)
(3, 4)