There is a bug in the HashMap? Iterators that causes them to miss elements. This means that if I insert, for example, 5 elements into the HashMap?, when iterating over it by using an Iterator I will not get these 5 elements if I call iter.next() successively. You can see this using the attached program. Here's the output:
* Insertion
Item 0: 01234
Item 1: 12345
Item 2: 23456
Item 3: 34567
Item 4: 45678
* Index-based iteration
Item 0: 01234
Item 1: 12345
Item 2: 23456
Item 3: 34567
Item 4: 45678
* Iterator-based iteration
Item 0: 45678
Item 1: 12345
Item 2: 34567
Item 3: 01234