A: Check your x and y calculations. x = col * size ensures the first column starts at 0. If you accidentally add an offset, correct it.
private static final int NUM_ROWS = 8; private static final int NUM_COLS = 8; private static final int SQUARE_SIZE = 50; // Pixels per square 9.1.7 checkerboard v2 answers
A: The GraphicsProgram class has its own main method internally. You do not need to write public static void main . Just extend GraphicsProgram . A: Check your x and y calculations