private static void addAll(ArrayList dest,ArrayList source){
  int size=source.size();
  for (int iter=0; iter < size; iter++) {
    dest.add(source.get(iter));
  }
}

private static void addAll ( ArrayList dest , ArrayList source ) { int size = source . size ( ) ; for ( int iter = 0 ; iter < size ; iter ++ ) { dest . add ( source . get ( iter ) ) ; } }
adds all arraylist elements from source to dest
