@@ -0,0 +1,714 @@
+package by.vorokhobko.3_conditional_operator;%0A%0A/**%0A * Point.%0A *%0A * Class Point calculate the length of the line part 001, lesson 3.%0A * @author Evgeny Vorokhobko (vorokhobko2011@yandex.ru).%0A * @since 04.12.2016.%0A * @version 1.%0A */%0A%0Apublic class Point %7B%0A /**%0A * The class field.%0A * double x.%0A */%0A%09private double x;%0A/**%0A * double y.%0A */%0A%09private double y;%0A%0A /**%0A * The constructor of the Point with parameters.%0A * @param x - x.%0A * @param y - y.%0A */%0A%0A%09public Point(double x, double y) %7B%0A%09%09this.x = x;%0A%09%09this.y = y;%0A%09%7D%0A%0A /**%0A * %D0%A1alculate the distance.%0A * @param point - point.%0A * @return tag.%0A */%0A%09public double distanceTo(Point point) %7B%0A%09%09return Math.sqrt(Math.pow((point.x - x), 2) + Math.pow((point.y - y), 2));%0A%09%7D%0A%7D

add class Point