From: Peter \DeCaf\ P. <de...@al...> - 2003-06-25 00:06:41
|
Hi Jason, Maybe I haven't thought this issue through thoroughly, but isn't that what a HashMap is for? Working with associative arrays that is? As I understood it the util-classes are pretty much copies of the Java equivalents, and there are indeed no such thing as an associative array in Java. That is a Map. So if you need to use and manipulate an associative array, i.e. a map of some sort, wouldn't you be better off using a HashMap instead? (An iterator that works for the HashMap might be a good idea though) Just my thoughts, please correct me if you think I'm wrong. Sincerely, Peter Palotas. > I just encountered the fact that the arraylist object, and in > particular the listiterator, will not work with associative arrays. > > Worthy of a TODO item? > |