@@ -0,0 +1,394 @@
+package pravvich;%0A%0Apublic class Point %7B%0A%09public double x;%0A%09public double y;%0A%0A%09public Point(double x, double y) %7B%0A%09%09this.x = x;%0A%09%09this.y = y;%0A%09%7D%0A%09%09%0A%09public double distanceTo(Point that) %7B//%D0%BF%D1%80%D0%B8%D0%BD%D0%B8%D0%BC%D0%B0%D0%B5%D1%82 %D0%BE%D0%B1%D1%8A%D0%B5%D0%BA%D1%82 %D1%82%D0%B8%D0%BF%D0%B0 Point %D0%B8 %D0%BD%D0%B0%D0%B7%D1%8B%D0%B2%D0%B0%D0%B5%D1%82 that%0A%09%09//calculate distance between two points%0A%09%09double distance;%0A%09%09return distance = Math.sqrt((Math.pow(that.y - this.y), 2) + (Math.pow(that.x - this.x), 2));%0A%09%09%7D%0A%7D

add structure