17,17c17,17 < import java.util.*; --- > import java.util.Iterator; 17a18,19 > import java.util.Collection; > 25a28,28 > private Collection myInitialCollection; 30a34,35 > myInitialCollection = c; > reset(); 31,31d33 < myIterator = c.iterator(); 45,45c49,49 < * @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(); > } >