Here you can find the source of fill(int[][] array, int value)
public static void fill(int[][] array, int value)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; public class Main { public static void fill(int[][] array, int value) { for (int[] subarray : array) Arrays.fill(subarray, value); }/*from w ww .j a v a 2 s . co m*/ public static void fill(double[][] array, double value) { for (double[] subarray : array) Arrays.fill(subarray, value); } public static void fill(int[][][] arrays, int value) { for (int[][] array : arrays) for (int[] subarray : array) Arrays.fill(subarray, value); } }