package ca.stqa.javabook.sandbox;

public class MyFirstProgram {

  public static void main(String[] args) {
    system("is working");
    system("is sleeping");
    system("is running");

    double l = 5;
    System.out.println("Area of square of " + l + " = " + area(l));

    double a = 4;
    double b = 6;
    System.out.println("Area of rectangle with sides " + a + " and " + b + " = " + area(a, b));
  }

  public static void system(String somebody) {
    System.out.println("The system " + somebody + "!");
  }

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

  public static double area(double a, double b){
    return a * b;
  }
}
@@ -106,554 +106,47 @@
 ) %7B%0A
-    system(%22is working%22);%0A    system(%22is sleeping%22);%0A    system(%22is running%22);%0A%0A    double l = 5;%0A    System.out.println(%22Area of square of %22 + l + %22 = %22 + area(l));%0A%0A    double a = 4;%0A    double b = 6;%0A    System.out.println(%22Area of rectangle with sides %22 + a + %22 and %22 + b + %22 = %22 + area(a, b));%0A  %7D%0A%0A  public static void system(String somebody) %7B%0A    System.out.println(%22The system %22 + somebody + %22!%22);%0A  %7D%0A%0A  public static double area(double len) %7B%0A    return len * len;%0A  %7D%0A%0A  public static double area(double a, double b)%7B%0A    return a * b
+%0A    System.out.println(%22Hello world!%22)
 ;%0A  

Revert "myfirstprogram"