Here you can find the source of addAll(final Collection coll, final Object[] array)
Parameter | Description |
---|---|
coll | the collection to add to |
array | the array to value to add |
public static void addAll(final Collection coll, final Object[] array)
//package com.java2s; //License from project: Open Source License import java.util.Collection; public class Main { /**/*w ww.ja v a 2 s . c o m*/ * Convenience method that adds all members of an array to a collection. * * @param coll the collection to add to * @param array the array to value to add */ public static void addAll(final Collection coll, final Object[] array) { for (int i = 0; i < array.length; i++) { coll.add(array[i]); } } }