How to parse array to x,y positions?
To get the value at a particular location, use this code:

boolean val = zero[y] &amp; ((B1 &lt;&lt; maxX) &gt;&gt; x);


where y is the y position from 0 to zero.length, maxX is the length of the binary constants minus one (in this case, it would be 6), and x is the x position from 0 to maxX.

For more information, see BitMask.