Question: using NetBeans IDE 8.2 I need help to get the source Write a program called FourRectanglePrinter that constructs a Rectangle object prints its location by

using NetBeans IDE 8.2 I need help to get the source
Write a program called FourRectanglePrinter that constructs a Rectangle object prints its location by calling System.out.println (box), and then translates and prints it three more times, so that, if the rectangles were drawn, they would form one large rectangle, as shown in the diagram. Your program will not produce a drawing. It will simply print the size and locations of the four rectangles. Hint: At the top of the file, just before the class declaration should be the line: import java.awt.Rectangle
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
