package ru.stqa.pft.sandbox;

public class MyFirstProgram {
  public static void main(String[] args) {
    hello("world");
    hello("Pavel");

    Square s = new Square(7);
    System.out.println("Square of a square with side " + s.l + " = " + s.area());

    Rectangle r = new Rectangle(5, 10);
    System.out.println("Square of a rectangle with sides " + r.a + " and " + r.b + " = " + r.area());

  }

  public static void hello(String string) {

    System.out.println("Hello, " + string + "!");
  }

}
@@ -393,16 +393,219 @@
 ea());%0A%0A
+    Point p1 = new Point(2.5, 3.5);%0A    Point p2 = new Point(5.5, -0.5);%0A    System.out.println(%22Distance between p1(%22 + p1.a + %22;%22 + p1.b + %22) and p2(%22 + p2.a + %22;%22 + p2.b + %22) = %22 + distance(p1, p2));%0A
   %7D%0A%0A  p
@@ -645,17 +645,16 @@
 ring) %7B%0A
-%0A
     Syst
@@ -700,9 +700,147 @@
 );%0A  %7D%0A%0A
+  public static double distance(Point p1, Point p2) %7B%0A    return Math.sqrt((p1.a - p2.a)*(p1.a - p2.a)+(p1.b - p2.b)*(p1.b - p2.b));%0A  %7D%0A%0A
 %7D

Create and use function distance