I am using JDK 1.4. I need a hashtable like datastructure where i can store int values (primitive) against string keys. Is there any datastructure like that in java and if not how can it be implemented?
If your really want to store primitive values and
want to access them by hash, you would have
to write your own Hashtable that uses a int
as underlying storage. This is definitly not part
of JRE and I am not aware of any 3rd party library
that does that. It's even questionable if you could
get any performance win out of it. However if you do,
let me know.