I have a Map<Something, List<String>> map.
I want to remove a String from the List<String>.
Is that possible ? How do I do that ?
I don't want to remove the mapping, just alter the 'value' of an entry.
I have tried map.values().remove("someString"), but that doesn't seem to work.
Try map.get(somethingKey).remove("someString").
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With