17c17,19 < import java.util.*; --- > import java.util.Iterator; > import java.util.Collection; > 25a28 > private Collection myInitialCollection; 31c34,35 < myIterator = c.iterator(); --- > myInitialCollection = c; > reset(); 45c49 < * @exception NoSuchElementException If no more elements exist. --- > * @exception java.util.NoSuchElementException If no more elements exist. 54a59,68 > /** > * 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 = myInitialCollection.iterator(); > } >