@@ -0,0 +1,370 @@
+package ru.matevosyan;%0A%0Apublic class Point %7B%0A%0A%09public double x;%0A%09public double y;%0A%0A%09public Point(double x, double y) %7B%0A%0A%09%09this.x = x;%0A%09%09this.y = y;%0A%0A%09%7D%0A%0A%09public double distanceTo(Point point) %7B%0A%0A%09%09//calculate distance between two points%0A%09%09%0A%09%09double pointDistance = Math.sqrt(Math.pow(point.y - this.y, 2) + Math.pow(point.x - this.x, 2));%0A%09%09return pointDistance;%0A%0A%09%7D%0A%0A%7D%0A

add Point.java