Here you can find the source of fill(double[][] d, double val)
public static void fill(double[][] d, double val)
//package com.java2s; import java.util.*; public class Main { public static void fill(double[][] d, double val) { for (double[] aD : d) { Arrays.fill(aD, val); }//from w w w. j a v a 2s.c o m } public static void fill(double[][][] d, double val) { for (double[][] aD : d) { fill(aD, val); } } public static void fill(double[][][][] d, double val) { for (double[][][] aD : d) { fill(aD, val); } } public static void fill(boolean[][] d, boolean val) { for (boolean[] aD : d) { Arrays.fill(aD, val); } } public static void fill(boolean[][][] d, boolean val) { for (boolean[][] aD : d) { fill(aD, val); } } public static void fill(boolean[][][][] d, boolean val) { for (boolean[][][] aD : d) { fill(aD, val); } } }