concat列表
//package com.nowjava;/**from N o w J a v a . c o m**/ import java.util.LinkedList; import java.util.List; public class Main { public static <T> List<T> concatLists(Iterable<? extends T>... lists) { final List<T> result = new LinkedList<T>(); for (final Iterable<? extends T> list : lists) { for (final T item : list) { result.add(item); } } return result; } } /* nowjava.com 提 供 */