Here you can find the source of fillArray2D(double[][] arr, double value)
public final static void fillArray2D(double[][] arr, double value)
//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 } }