The following text was written to the standard output stream when the WorkArea program was executed from IntelliJ.
//creating a messy table package shapes; public class WorkArea { public static void main(String[] args){ SRectangle desk = new SRectangle(24,36); System.out.println("desk = " + desk.toString()); System.out.println("Area of the desk = " + desk.area() ); SRectangle books = new SRectangle(8.5,11); System.out.println("books = " + desk.toString()); System.out.println("Area of books = " + 2 * books.area() ); SCircle plates = new SCircle(8); System.out.println("plates = " + plates.toString()); System.out.println("Area of three plates = " + 3 * plates.area() ); SCircle glass = new SCircle(1.35); System.out.println("glass " + glass.toString()); System.out.println("Area of three glasses " + 3 * glass.area() ); SSquare coaster = glass.circumscribingSquare(); System.out.println("coaster = " + coaster.toString() ); System.out.println("area of three coasters = " + 3 * coaster.area() ); double objects = ((2* books.area() + 3* plates.area()) + 3 * coaster.area() ); System.out.println("Area occupied by the objects = " + objects); double result = (desk.area() - objects); System.out.println("The area not occupied in the desk = " +result); } }