Here you can find the source of addAll(T[] array, List
public static <T> void addAll(T[] array, List<T> list)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { public static <T> void addAll(T[] array, List<T> list) { for (T t : array) { list.add(t);//from w w w. ja v a 2s. c o m } } }