Topic
2 replies Latest Post - ‏2012-08-14T18:38:15Z by gr8yash
SystemAdmin
SystemAdmin
757 Posts
ACCEPTED ANSWER

Pinned topic how to remove single key,value pair from hashmap

‏2008-04-24T09:54:34Z |
i have a hashmap in weblogic
i m using this hashmap for displaying contents in a dropdown.
the contents of map r as follows
sse=seniorsoftwareengineer,jse=junior software engineer,se=softwareengineer,sa=softwarearchitect

dropdown displays contents like

seniorsoftwareengineer
juniorsoftwareengineer
softwarearchitect

i want to remove the element that is selected by user in dropdown from hashmap.
if user select softwarearchitect then hashmap should not contain softwarearchitect.

for this i m using
hm.remove(form.getselectedItem());

but dropdown still displaying code of selected item like

sse
juniorsoftwareengineer
softwarearchitect

how to resolve it
Updated on 2012-08-14T18:38:15Z at 2012-08-14T18:38:15Z by gr8yash
  • SystemAdmin
    SystemAdmin
    757 Posts
    ACCEPTED ANSWER

    Re: how to remove single key,value pair from hashmap

    ‏2008-08-26T16:21:39Z  in response to SystemAdmin
    HI
    I WANT TO KNOW MORE,
    DEVIDMERRY.

    http://www.hookup-tonite.com
  • gr8yash
    gr8yash
    1 Post
    ACCEPTED ANSWER

    Re: how to remove single key,value pair from hashmap

    ‏2012-08-14T18:38:15Z  in response to SystemAdmin
    Just issue a call to method HashMap.remove() method and pass key to that. Refer Map and HashMap Tutorial