Write a class Square whose constructor receives the length of the sides. Then supply methods to compute

You need to supply the following class in your solution:

Square

Use the following class as your tester class:

/**
   This program tests the Square class.
 */
public class SquareTester
{
   public static void main(String[] args)
   {
      Square mySquare = new Square(2);

      System.out.println("Area: " + mySquare.getArea());
      System.out.println("Expected: 4");

      System.out.println("Perimeter: " + mySquare.getPerimeter());
      System.out.println("Expected: 8");

      System.out.println("Diagonal length: " + mySquare.getDiagonalLength());
      System.out.println("Expected: 2.828427125");
   }
}

Complete the following file:

Square.java