This discussion is archived
3 Replies Latest reply: Aug 18, 2010 3:57 AM by forumKid2 RSS

Need help assigning value to a field marked '?'

843793 Newbie
Currently Being Moderated
Given: Map<String, ?> options

options.put("a", "b");

generates a compiler error: put(java.lang.String,capture#398 of ?) in java.util.Map<java.lang.String,capture#398 of ?> cannot be applied to (java.lang.String,java.lang.String)

Can someone please tell me what syntax to use to get the data into this Map.

Thanks,