Shikha schreef:
> Hello,
> I wish to remove a key value pair from hashmap. if i use remove() it
> removes the key-value but still keeps the space and assigns a null
> there. i want it to free that space. is there a method to do this ?
> shikha
I'm not sure what the problem is. If I use remove() on a hashmap it
removes the key and the value and I can not see any 'null' values in
the map.
Could you provide a code example and some more pointers to where you
can see the 'null' value?
Bart
Shikha - 07 Jul 2006 08:03 GMT
hey i got the problem. i was iterating through the hashmap in an
incorrect way....
sorry to bother.
thanks
shikha