@@ -0,0 +1,854 @@
+public class Point %7B%0A    public double x;%0A    public double y;%0A    private static int num = 0;%0A%0A    public Point(double x, double y) %7B%0A        this.x = x;%0A        this.y = y;%0A        ++num;%0A    %7D%0A%0A    public Point() %7B%0A        this(0.0, 0.0);%0A    %7D%0A%0A    public double distance(Point other) %7B%0A        return Math.sqrt(%0A            Math.pow(this.x - other.x, 2) + Math.pow(this.y - other.y, 2)%0A        );%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        if (this == obj) return true;%0A        if (obj == null) return false;%0A        if (!(obj instanceof Point)) return false;%0A        Point point = (Point)obj;%0A        return ((this.x == point.x) && (this.y == point.y));%0A    %7D%0A%0A    public String toString() %7B%0A        return String.format(%22(%25.2f, %25.2f)%22, this.x, this.y);%0A    %7D%0A%0A    public static int getNum() %7B%0A        return num;%0A    %7D%0A%7D%0A

add a point class