class IntSet11c extends IntSet11 { // Adds a copy to sets implemented using linked lists // Copy method uses iteration with "stack and reverse" technique. public IntSet11c() { super(); } private IntSet11c(Cell l) { list=l; } public IntSet11c copy() { Cell list1=null,temp=null; for(Cell ptr=list; ptr!=null; ptr=ptr.next) temp = new Cell(ptr.first,temp); for(; temp!=null; temp=temp.next) list1 = new Cell(temp.first,list1); return new IntSet11c(list1); } }