...
Unfortunately, a Vector
and an Enumeration
may not always work well together. In fact, the Java API [API 2011] recommends, "New implementations should consider using Iterator
in preference to Enumeration
.". Consequently, iterable collections should prefer the use of iterators over enumerations.
Noncompliant Code Example
...