I have a method, where I am trying to modify the value of one key of a map.
I cannot change the signature of the map .
public void testMethod(Map<String, ?> settings) {
this.xyzkey = (String) settings.get(xyzkey);
settings.put("xyzkey" ,settings.get(xyzkey)+"test"));
}
Now when I want to get a specific key from the map and modify its values I am getting Wrong 2nd argument type. Found:'java.lang.String',required:'?'.
Please suggest any way o update the key's value .