code: public ArrayList<E> toArrayList () {
          ArrayList<E> list = new ArrayList<E>(size());
          for (E elem : this) list.add(elem);
          return list;
      }
docs: Copies the elements of this distributed set into a newly created {@link ArrayList}.