public static void copyToArray ( Collection < Object > collection , Object [ ] objects ) { System . arraycopy ( collection . toArray ( ) , 0 , objects , 0 , objects . length ) ; }
Copy collection objects to a given array