i have a method that returns a map defined as:
public Map<String, ?> getData();
the actual implementation of this method is not clear to me, but:
when i try to do:
obj.getData().put("key","value")
I get following compile time error message:
The method put(String, capture#9-of ?) in the type Map is not applicable for the arguments (String, String)
what is the problem? is not String
of type anything?
thanks in advance