Method populateArray that takes a two dimensional array as a parameter and populates it with data read from the keyboard code example
Example: fill a two dimensional array with default value
for (double[] row: matrix)
Arrays.fill(row, 1.0);
for (double[] row: matrix)
Arrays.fill(row, 1.0);