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;
}

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 ; }
it returns an arraylist that contains the elements of the given array , in the same order .
