java.lang.ArrayStoreException: java.lang.Integer at java.base/java.util.Arrays.fill(Arrays.java:3429) 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);