// This class is in the public domain.
public class Numbers
{
public static void main(String[] args)
{
int numRows = 256;
int numColumns = 128;
for (int row = 0; row < numRows; row++)
{
StringBuilder rowOutput = new StringBuilder();
for (int column = 0; column < numColumns; column++)
{
if ((row & column) != 0)
rowOutput.append("1");
else
rowOutput.append("0");
}
System.out.println(
String.format("row/col %s:\t%s", row, rowOutput.toString()));
}
}
}