Checkers board in Java
<p>As a class we were creating a checkers board in eclipse. I came up with this code but instead of displaying a checkers board it has only three white boxes and the rest is black. 
here is my code:</p>

<pre><code>import acm.program.*;
import acm.graphics.*;
import java.awt.*;

public class checkgame extends GraphicsProgram 
{
    private static final int ROWS = 8;

    private static final int COLUMS = 8;

    public void run()
    {
        int sqSize = getHeight() / ROWS;
        for (int i = 0; i&lt;ROWS; i++)
        {
            for (int j = 0; j&lt;COLUMS; j++)
            {
                int x = j*sqSize;
                int y = i*sqSize;
                GRect sq = new GRect (x,y,sqSize,sqSize);
                sq.setFilled(((i+j)/2)!=0);
                add(sq);
            }
        }
    }
}
</code></pre>

<p>Any ideas where I went wrong?
Thanks!</p>