How can I add an array of objects to a collection?

John Zukowski

First you need to convert the array to a Collection. This can be done with Arrays.asList(objectArray). Once you have the array as a List, you can add it to another Collection with theCollection.addAll(theList).

About | Sitemap | Contact