Here you can find the source of addAll(final List
public static <T> void addAll(final List<T> list, final T... elements)
//package com.java2s; // ProjectForge is dual-licensed. import java.util.List; public class Main { public static <T> void addAll(final List<T> list, final T... elements) { for (final T element : elements) { list.add(element);//from w w w. j a v a2 s . co m } } }