[thelist] Java Arrays
Hassan Schroeder
hassan at webtuitive.com
Tue Mar 11 13:22:32 CST 2003
Rob Whitener wrote:
> A hashmap might also help:
>
> http://www.linuxgazette.com/issue57/tindale.html This lets you store data
> and index it using a key. However, java determines the key from the data
> you are trying to store, so you can't actually assign a string index for
> data.
> Hope this helps, and isn't horribly late.
Well, dunno about late, but it's wrong :-)
The article above is about java.util.HashTable -- which does have
key constraints -- as opposed to java.util.HashMap, which allows
any kind of object, including strings, to be either key or value.
FWIW!
--
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
dream. code.
More information about the thelist
mailing list