Here you can find the source of filledIntArray(int length, int cont)
public static int[] filledIntArray(int length, int cont)
//package com.java2s; //License from project: Apache License import java.util.Arrays; public class Main { public static int[] filledIntArray(int length, int cont) { int[] res = new int[length]; Arrays.fill(res, cont);//from w w w . j av a2 s. co m return res; } }