public class Point1 { private int x; private int y; public Point1(int a,int b) { x=a; y=b; } public Point1() { x=0; y=0; } public double findDistance(Point1 first) { return(Math.sqrt((x-first.x)*(x-first.x)+(y-first.y)*(y-first.y))); } public String toString(){ return "(" + this.x + "," + this.y +")" ; } }