Tuesday, July 24, 2001 08:07 AM
This is happening because
isn't FIFO, like you think it is.
hashtable stores it's elements in an apparent random order. (Of course, that's not true, but it doesn't look like it makes any sense when you're enumerating through them).
You'll want to use a class that keeps it's elements ordered, like a
List such as
ArrayList. Then, your elements will come out in the same order that you put them in.