posted 18 years ago
As far as I can tell, this is always true in practice (assuming there are no modifications to the Map while you're calling the other methods, of course), but is not actually guaranteed anywhere. Ultimately I think you'd be better off creating the arrays yourself, to be sure they're both in the same order:
Though this also sort of begs the question, why do you need these two separate arrays, anyway? In general I would think that whatever you need from the arrays could also be gotten from the map. But if you do need the separate arrays for some reason, OK.
"I'm not back." - Bill Harding, Twister