14d13 < import java.util.*; 17a17,19 > import java.util.Iterator; > import java.util.List; > 24a27 > private List myInitialList; 27c30,31 < myIterator = new ReverseListEnumerator(l); --- > myInitialList = l; > reset(); 41c45 < * @exception NoSuchElementException If no more elements exist. --- > * @exception java.util.NoSuchElementException If no more elements exist. 45a50,59 > > /** > * Reset the enumeration so it can be reused again. However, the > * underlying collection might have changed since the last usage > * so the elements and the order may vary when using an enumeration > * which has been reset. > */ > public void reset() { > myIterator = new ReverseListEnumerator(myInitialList); > }