@ SafeVarargs public static < E > void addAll ( Collection < E > collection , E [ ] ... arr ) { if ( collection == null ) { throw new IllegalArgumentException ( "collection cannot be null" ) ; } for ( E [ ] oarr : arr ) { for ( E o : oarr ) { collection . add ( o ) ; } } }
Adds the contents of one or more arrays to a collection .