Here you can find the source of addArray(java.util.Collection
public static <T> java.util.Collection<T> addArray(java.util.Collection<T> v, T array[])
//package com.java2s; //License from project: Apache License public class Main { /************************************************************************/ public static <T> java.util.Collection<T> addArray(java.util.Collection<T> v, T array[]) { if ((array == null) || (v == null)) { return v; }/* w w w. j a va 2 s . co m*/ for (int i = 0; i < array.length; i++) { v.add(array[i]); } return v; } }