Download the following file
PointMain.java
to your machine and open it with jGrasp.
Now edit Point.java and add two methods to the Point class as described on the next two slides.
The PointMain program calls these methods; you can use it to test your code.
Or you can test your code in Practice-It!