【发布时间】:2015-06-28 19:21:40
【问题描述】:
如何向 HashMap 中的 HashSet 添加值?
Map<String, Set<String>> myMap;
【问题讨论】:
-
你能详细说明
I haven't found an answer targeting the general concept.是什么意思 -
我对它投了反对票,因为在您发表评论后
Try searching for an answer here on SO. The answers are made to fit the exact problems OPs have faced。我做了完全相同的事情,并找到了一个完全回答您的问题的答案:stackoverflow.com/questions/15797446/…。因此,当您说您没有找到满足您要求的答案时,您需要详细说明与其他答案相比它不满足的要求。 -
这个问题是discussed on MetaSO。
标签: java dictionary hashmap set hashset