public static List toList(Chain c){
  Iterator it=c.iterator();
  List list=new ArrayList();
  while (it.hasNext()) {
    list.add(it.next());
  }
  return list;
}

public static List toList ( Chain c ) { Iterator it = c . iterator ( ) ; List list = new ArrayList ( ) ; while ( it . hasNext ( ) ) { list . add ( it . next ( ) ) ; } return list ; }
returns an unbacked list containing the contents of the given chain .
