I have HashMap HashMap<Integer, List<String>> storeR and it stores "22,name1,name2"..but is there any way to remove name1 from the 22? i just want to remove only name 1 from 22. How do i do that.?I hope you can help me with it. Thank you.
I have HashMap HashMap<Integer, List<String>> storeR and it stores 22,name1,name2 ..but is there any
Share
Get the list out of your map and remove the element you want to have removed:
If there is no key
22in the map, or it’s value isnullthis will throw aNullPointerException, though.