The following text was written to the standard output stream when the BlackArea.java program was executed from Netbeans.
/* * Program to find free space on the table with obstructions on it. */ package shapes; /** * * @author ecuevas */ public class BlackArea { /** * @param args the command line arguments */ public static void main(String[] args) { // VARIABLES double tableSideLength = 39; double deckHeight = 3.5; double deckWidth = 2.25; double glassEdge = 2.1; // SHAPES SSquare table = new SSquare(tableSideLength); System.out.println("table side length = " + table.toString()); System.out.println("Area of the Table = " + table.area()); SRectangle deck = new SRectangle(deckHeight,deckWidth); System.out.println("deck = " + deck.toString()); System.out.println("Area of the Deck = " + deck.area()); SSquare glass = new SSquare (glassEdge); System.out.println("glass = " + glass.toString()); System.out.println("area of glass = " + glass.area()); SCircle coaster = glass.inscribingCircle(); System.out.println("coaster = " + coaster.toString()); System.out.println("coaster = " + coaster.circumscribingSquare()); System.out.println("area of coaster = " + coaster.area()); // CALCULATIONS double areaofobjects =((2*deck.area()) + (4*coaster.area())); System.out.println("coaster = " + areaofobjects); System.out.println("area of objects on the table = " + areaofobjects); double two = (table.area() - areaofobjects); System.out.println("area of free space on table = " + two); } }