Here you can find the source of fillArray(String[] array, int size, String fillString)
public static String[] fillArray(String[] array, int size, String fillString)
//package com.java2s; //License from project: Open Source License public class Main { public static String[] fillArray(String[] array, int size, String fillString) { if (array == null) { return null; }//from www .j a v a 2 s . c om String[] fillArray = new String[size]; for (int index = 0; index < fillArray.length; index++) { String fillValue = fillString; if (index < array.length) { fillValue = array[index]; } fillArray[index] = fillValue; } return fillArray; } }