Here you can find the source of fill(String[] ary, String value)
public static void fill(String[] ary, String value)
//package com.java2s; //License from project: Open Source License import java.util.Collection; public class Main { public static void fill(String[] ary, String value) { if (!isEmplyOrNull(ary)) { for (int i = 0; i < ary.length; i++) { ary[i] = value;/* www . j a v a 2 s. com*/ } } } public static <T> boolean isEmplyOrNull(T[] ary) { if (ary == null || ary.length == 0) { return true; } return false; } public static <T> boolean isEmplyOrNull(Collection<T> collection) { if (collection == null || collection.size() <= 0) { return true; } return false; } }