Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

free the space after remove from hashmap

Thread view: 
Shikha - 07 Jul 2006 07:50 GMT
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
Bart Cremers - 07 Jul 2006 07:56 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.