map.remove... How do I get it to work?
807588Aug 5 2009 — edited Aug 5 2009hi all!
I have a quick question that may be impossible.
I have a map object (myMap) that is populated with key value pairs
Im trying to remove a key, based on its String value (as opposed to its key value)
when I call
myMap.remove("myName"); //
I get the error:
incompatible types
found : java.lang.Object
required: java.lang.String
i tried casting it to an object - which obviously failed, but how can I get this to work?!?!