In Java, a 2D array can be declared in one of two ways. The first way is to specify the row first and the column second:
byte[] data = new byte[4];
data = data >> 0 | data >> 3;
This code creates an array of four bytes containing the values 0, 1, 2, and 3. The second way to declare a 2D array is to focus on the column first and the row second:
byte[] data = { 0b0111, 010010, 111000, 110011 };
This code creates an array of three bytes containing the values for each position in data as follows: (0b11), (0110), (1100).