Java Array Fill fill(int[][] array, int value)

Here you can find the source of fill(int[][] array, int value)

Description

fill

License

Open Source License

Declaration

public static void fill(int[][] array, int value) 

Method Source Code


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

Related

  1. fill(double[][] d, double val)
  2. fill(final double[][] arr, final double val)
  3. fill(final Object[] array, final int start, final int end, final Object value)
  4. fill(final T[] array, final int size)
  5. fill(final T[] array, final T value)
  6. fill(String[] ary, String value)
  7. fill(T[][][] arr, T val)
  8. fillArray(byte[] btArray, byte[] btValue, int iStartPosition, int iLength, byte btAlternateValue, int iAlign)
  9. fillArray(byte[] data)