question: static public ArrayList < String > generateArrayList ( String [ ] array ) { ArgumentChecking . notNull ( array , "array" ) ; ArrayList < String > list = new ArrayList < String > ( array . length ) ; for ( int i = 0 ; i < array . length ; ++ i ) { list . add ( i , array [ i ] ) ; } return list ; }
target:  It returns an ArrayList that contains the elements of the given array, in the same order.