Here you can find the source of fillArray(String value, int length)
public static String[] fillArray(String value, int length)
//package com.java2s; //License from project: Apache License import java.util.Arrays; public class Main { public static String[] fillArray(String value, int length) { String[] result = new String[length]; Arrays.fill(result, value); return result; }//from w w w .j a v a 2 s .com }