question: public CopyOnWriteArrayList ( Collection c ) { Object [ ] elements = new Object [ c . size ( ) ] ; int size = 0 ; for ( Iterator itr = c . iterator ( ) ; itr . hasNext ( ) ; ) { Object e = itr . next ( ) ; elements [ size ++ ] = e ; } setArray ( elements ) ; }
target:  Creates a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.