Add all elements from an array into a given collection of the same type. @param lhs The left-hand side. Elements of this array will be added to the collection. @param rhs The right-hand side. Elements from the left-hand side will be added to this collecti
(T[] lhs, Collection<T> rhs)
| 209 | * added to this collection. |
| 210 | */ |
| 211 | public static <T> void addAll(T[] lhs, Collection<T> rhs) { |
| 212 | for(int i=0;i!=lhs.length;++i) { |
| 213 | rhs.add(lhs[i]); |
| 214 | } |
| 215 | } |
| 216 | |
| 217 | /** |
| 218 | * Convert a collection of strings into a string array. |
no test coverage detected