[ Follow Ups ] [ Post Followup ] [ Discussions at the Paneris newbox node ]

Re: hashtables and vectors

Posted by Myles on Thu Jan 21 14:03:52 1999

In Reply to: hashtables and vectors posted by TimJ on January 21, 1999 at 13:31:27:

Distribution: paneris@i-way.co.uk
>Right,

>For about the 3rd time in as many weeks (and as many programming languages), i need a Vector/Hashtable datastructure that allows me to access individual items by key name (like a hashtable), but also step through the keys (and values) in the order that they were added to the object (like a Vector).

>I know this is easy to write, but it seems so necessary that, now I'm working in Java, it should be part of java.util, but I can't find anything useful. Am I going about this the right way?

I'd have thought so. I'm guessing that we need to write a
org.paneris.util package containing your new class, no?

I heard someone say that they didn't like multiple inheritence
in C++ until they started using Java, which is when they needed it!

Myles




Follow Ups: