I recommend reading the array tutorial . It covers basic manipulations with arrays, including the creation of "multidimensional" arrays.
char[][] arr = new char[30][100];
Now you have arr[0], arr[1]..., arr[29]each of which is an array of 100 char.
This snippet shows an example of array initialization and access to them:
int[][] m = {
{ 1, 2, 3 },
{ 4, 5, 6, 7, 8 },
{ 9 }
};
System.out.println(m[1][3]); // prints "7"
m[2] = new int[] { -1, -2, -3 };
System.out.println(m[2][1]); // prints "-2";
, Java ; m - . , ( "" ) .
java.util.Arrays. ( , , , ..).
import java.util.Arrays;
// ...
int[][] table = new int[3][];
for (int i = 0; i < table.length; i++) {
table[i] = new int[i + 1];
for (int j = 0; j < table[i].length; j++) {
table[i][j] = (i * 10) + j;
}
}
System.out.println(Arrays.deepToString(table));
// prints "[[0], [10, 11], [20, 21, 22]]"