package ru.stqa.pft.other;

public class MyProgram {
    public static void main(String[] args) {
        System.out.println("Hello, world!");
    }
}
package ru.stqa.pft.other;

public class MyProgram {
    public static void main(String[] args) {
        hello("world");
        hello("user");
        hello("Рита");

        double len = 6;
        System.out.println("Площадь квадрата со стороной " +  len + " = " + area(len));

        double a = 2;
        double b = 4;
        System.out.println("Площадь прямоугольника со сторонами " +  a + " и " + b + " = " + area(a, b));
    }

    public static void hello(String somebody){
        System.out.println("Hello, " + somebody + "!");
    }

    public static double area (double l){
        return l*l;
    }

    public static double area (double a, double b){
        return a*b;
    }
}
add new function