Java tutorial
import java.util.Arrays; public class Main { public static void main(String[] argv) throws Exception { double[] doubleArr = new double[10]; double doubleFillValue = -1; Arrays.fill(doubleArr, doubleFillValue); } }