declaring and initializing 2d array in java code example
Example 1: How to create a 2d array in java
int[][] arr = new int[m][n];
Example 2: how to initialize one dimensional array in java
int[] a; // valid declaration
int b[]; // valid declaration
int[] c; // valid declaration