CS1 Standard Demo Page

The following text was written to the standard output stream when the /*Compute the yellow area */ package shapes; public class YellowSpace { public static void main(String[] args) { SSquare BigG = new SSquare(400); SSquare BigY = new SSquare(200); SSquare SmallG = new SSquare(100); SSquare SmallY = new SSquare(50); BigG.area(); BigY.area(); SmallG.area(); SmallY.area(); double step1 = BigG.area()-SmallG.area(); double yellowspace = step1 + SmallY.area(); System.out.println("Area of Yellow Space =" + yellowspace); } } program was executed from IntelliJ.

Area of Yellow Space =152500.0