Java Array Fill fill(double[][] d, double val)

Here you can find the source of fill(double[][] d, double val)

Description

fill

License

Open Source License

Declaration

public static void fill(double[][] d, double val) 

Method Source Code

//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);
        }
    }
}

Related

  1. fill( T[] a, T val)
  2. fill(byte[] arr)
  3. fill(byte[] val, byte b)
  4. fill(char[] chars, int fromIndex, int toIndex, char c)
  5. fill(double[][] array, double s)
  6. fill(final double[][] arr, final double val)
  7. fill(final Object[] array, final int start, final int end, final Object value)
  8. fill(final T[] array, final int size)
  9. fill(final T[] array, final T value)