1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
public class Arrays01 {
private static final int[][] mapper02 = {
{0,2},
{1,3}
};
private static final String[] colHeaders02 = { "0", "1" };
private static final String[] rowHeaders02 = { "0", "1" };
private static final int[][] mapper03 = {
{0,2,6,4},
{1,3,7,5}
};
private static final String[] colHeaders03 = { "00", "01", "11", "10" };
private static final String[] rowHeaders03 = { "0", "1" };
private static final int[][] mapper04 = {
{0, 4, 8, 12},
{1, 5, 9, 13},
{3, 7, 11, 15},
{2, 6, 10, 14}
};
private static final String[] colHeaders04 = { "00", "01", "11", "10" };
private static final String[] rowHeaders04 = { "00", "01", "11", "10" };
private int[][] mapper = null;
public void configure() {
mapper = mapper02;
}
} |