联合到数组列表
/* 来自 N o w J a v a . c o m*/ //package com.nowjava; import java.util.*; public class Main { public static <T> List<T> unionToArrayList( final Collection<T> collection, final T... items) { final ArrayList<T> result = new ArrayList<T>(collection.size() + items.length); result.addAll(collection); Collections.addAll(result, items); return result; } }