Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Wiki Markup
Unfortunately, a {{Vector}} and an {{Enumeration}} may not always mutuallywork generatewell positive vibestogether, as will be demonstrated in the noncompliant code example. In fact \[[API 06|AA. Java References#API 06]\] itself recommends, "New implementations should consider using Iterator in preference to Enumeration." 

...

Upon encountering the first "Harry", it successfully removes the entry and the size of the vector diminishes to 3. Awkwardly, the index of the Enumeration does not decrease by 1 leading the program to use "Tom" for the next (now final) comparison. Thus, the second "Harry" continue continues to remain in the vector unscathed, having shifted to the second position in the vector.

...