@@ -0,0 +1,1102 @@
+package ru.stqa.pft.sandbox;%0A%0A/**%0A * Created by Golem on 11.03.2017.%0A */%0Apublic class Point %7B%0A    double oX;%0A    double oY;%0A%0A    public Point(double oX , double oY)%7B%0A        this.oX = oX;%0A        this.oY = oY;%0A    %7D%0A%0A    public static double distance(Point p1, Point p2)%7B%0A        double result;%0A        result = Math.sqrt(Math.pow((p1.oX - p2.oX),2) + Math.pow((p1.oY - p2.oY),2));%0A        return result;%0A    %7D%0A%0A    public double distance(Point p)%7B%0A        double result;%0A        result = Math.sqrt(Math.pow((this.oX - p.oX),2) + Math.pow((this.oY - p.oY),2));%0A        return result;%0A    %7D%0A%0A    public static void main(String%5B%5D args)%7B%0A        Point p1 = new Point(1,2);%0A        Point p2 = new Point(-2,-10);%0A        double  distance;%0A        String result = %22%D0%94%D0%B8%D1%81%D1%82%D0%B0%D0%BD%D1%86%D0%B8%D1%8F %D0%BC%D0%B5%D0%B6%D0%B4%D1%83 %D1%82%D0%BE%D1%87%D0%BA%D0%B0%D0%BC%D0%B8 %D1%80%D0%B0%D0%B2%D0%BD%D0%B0: = %22;%0A%0A        //Case 1%0A        distance = distance(p1,p2);%0A        System.out.println(%22%D0%A0%D0%B5%D0%B7%D1%83%D0%BB%D1%8C%D1%82%D0%B0%D1%82 %D0%B2%D1%8B%D0%B7%D0%BE%D0%B2%D0%B0 %D1%81%D1%82%D0%B0%D1%82%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%BE%D0%B3%D0%BE %D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%B0:%5Cn%22 + result + distance + %22.%5Cn%22);%0A%0A        // Case 2%0A        distance = p1.distance(p2);%0A        System.out.println(%22%D0%A0%D0%B5%D0%B7%D1%83%D0%BB%D1%8C%D1%82%D0%B0%D1%82 %D0%B2%D1%8B%D0%B7%D0%BE%D0%B2%D0%B0 %D0%BC%D0%B5%D1%82%D0%BE%D0%B4%D0%B0 %D0%BA%D0%BB%D0%B0%D1%81%D1%81%D0%B0:%5Cn%22 + result + distance + %22.%22);%0A    %7D%0A%7D%0A

hometask_№2