Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider Java v3.0

...

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. ThusAs a result, the second "Harry" continues to remain in the vector unscathed, having shifted to the second position in the vector.

...