Here you can find the source of fillArray(int[] array, int value)
public static void fillArray(int[] array, int value)
//package com.java2s; //License from project: Open Source License public class Main { public static void fillArray(int[] array, int value) { array[0] = value;//from www.j a v a 2 s . com System.arraycopy(array, 0, array, 1, array.length - 1); } public static void fillArray(boolean[] array, boolean value) { array[0] = value; System.arraycopy(array, 0, array, 1, array.length - 1); } }