public class Point {
    public double x;
    public double y;
    private static int num = 0;

    public Point(double x, double y) {
        this.x = x;
        this.y = y;
        ++num;
    }

    public Point() {
        this(0.0, 0.0);
    }

    public double distance(Point other) {
        return Math.sqrt(
            Math.pow(this.x - other.x, 2) + Math.pow(this.y - other.y, 2)
        );
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null) return false;
        if (!(obj instanceof Point)) return false;
        Point point = (Point)obj;
        return ((this.x == point.x) && (this.y == point.y));
    }

    public String toString() {
        return String.format("(%.2f, %.2f)", this.x, this.y);
    }

    public static int getNum() {
        return num;
    }
}

@@ -268,16 +268,18 @@
 distance
+To
 (Point o
@@ -282,24 +282,24 @@
 nt other) %7B%0A
-
         retu
@@ -337,22 +337,22 @@
 pow(
+o
 th
-is
+er
 .x - 
-o
 th
-er
+is
 .x, 
@@ -369,321 +369,37 @@
 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)
+other.y - this.y, 2)%0A        
 );%0A 

remove unused functionality