public static < T > void addAll ( T [ ] lhs , Collection < T > rhs ) { for ( int i = 0 ; i != lhs . length ; ++ i ) { rhs . add ( lhs [ i ] ) ; } }
Add all elements from an array into a given collection of the same type .