creating 2d array java code example
Example 1: 2d array java
char[][] array = new int[rows][columns];
Example 2: How to create a 2d array in java
int[][] arr = new int[m][n];
Example 3: 2d array java
int[][] arr = new int[10][20];
arr[0][0] = 1;
Example 4: declaring 3d arrays
int test[2][3][4] = {
{{3, 4, 2, 3}, {0, -3, 9, 11}, {23, 12, 23, 2}},
{{13, 4, 56, 3}, {5, 9, 3, 5}, {3, 1, 4, 9}}}