1int rows = 5, column = 7;
2int[][] arr = new int[rows][column];
3
4 //2D arrays are row major, so always row first
5
6for (int row = 0; row < arr.length; row++)
7{
8 for (int col = 0; col < arr[row].length; col++)
9 {
10 arr[row][col] = 5; //Whatever value you want to set them to
11 }
12}