Check out example codes for "How to create a 2d array in java". It will help you in understanding the concepts better.

Code Example 1

char[][] array = new int[rows][columns];

Code Example 2

int[][] arr = new int[m][n];

Learn ReactJs, React Native from akashmittal.com