working with 2d arrays in java code example
Example 1: java two dimensional arrays
int[][] multiples = new int[4][2]; // 2D integer array with 4 rows
and 2 columns
String[][] cities = new String[3][3]; // 2D String array with 3 rows
and 3 columns
Example 2: 2d array java
char[][] array = new int[rows][columns];
Example 3: 2d arrays | java
int[][] arr = new int[row][column];
Example 4: How to create a 2d array in java
int[][] arr = new int[m][n];
Example 5: 2d array java
int[][] arr = new int[10][20];
arr[0][0] = 1;