填充泛型数组
/* from 时代Java - nowjava.com*/ public class Main{ public static <E> void fill(final E[] array, final ArrayFillFunction<? extends E> func) { for (int i = 0; i < array.length; ++i) { array[i] = func.getElementForIndex(i); } } public static <E> void fill(final E[] array, final ArrayFillFunction<? extends E> func, final int from, final int to) { /* 来自 *N o w J a v a . c