Java Array Fill fillArray2D(double[][] arr, double value)

Here you can find the source of fillArray2D(double[][] arr, double value)

Description

fill Array D

License

Open Source License

Declaration

public final static void fillArray2D(double[][] arr, double value) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.Arrays;

public class Main {
    public final static void fillArray2D(double[][] arr, double value) {
        for (int i = 0; i < arr.length; i++) {
            double[] col = arr[i];
            Arrays.fill(col, value);
        }//  w ww  .  j  av a 2  s . c om
    }
}

Related

  1. fillArray(Object[] array, Object value)
  2. fillArray(Object[] objects, Object object)
  3. fillArray(String value, int length)
  4. fillArray(String[] array, int size, String fillString)
  5. fillArray(T[] arr, T val)
  6. fillArrayWith(byte[] dest, byte[] pattern)
  7. fillArrayWithByte(byte[] array, byte value)
  8. fillArrayWithHalfSorted(int[] nums)
  9. fillColor(int[][] dist)