import java.util.Scanner; public class RectangleTestArray{ public static void main (String args[]) { Scanner scan = new Scanner (System.in); System.out.println ("How many rectangles do you want to create?"); int size = scan.nextInt(); Rectangle r[] = new Rectangle[size]; // An array of type Rectangle int max = -10, cell = 0; for (int i = 0; i