Here you can find the source of fillArray(final float[] array, final float value)
public static void fillArray(final float[] array, final float value)
//package com.java2s; //License from project: Open Source License public class Main { public static void fillArray(final float[] array, final float value) { int len = array.length; if (len > 0) { array[0] = value;//from w w w. j a v a 2 s . c om } for (int i = 1; i < len; i += i) { System.arraycopy(array, 0, array, i, ((len - i) < i) ? (len - i) : i); } } public static void fillArray(final int[] array, final int value) { int len = array.length; if (len > 0) { array[0] = value; } for (int i = 1; i < len; i += i) { System.arraycopy(array, 0, array, i, ((len - i) < i) ? (len - i) : i); } } }