import java.awt.Graphics2D; import java.awt.Rectangle; /** This class displays a checkerboard with squares, alternating between white and black. */ public class CheckerBoard { /** Creates a CheckerBoard object with a given number of squares. @param aNumSquares the number of squares in each row @param aSize the size of each square */ public CheckerBoard(int aNumSquares, int aSize) { numSquares = aNumSquares; size = aSize; } /** Method used to draw the checkerboard. @param g2 the graphics content */ public void draw(Graphics2D g2) { // your code here } private int numSquares; private int size; }