迭代arraylist值java的多值图?

时间:2017-09-20 13:02:32

标签: java arraylist

我在arraylist中有一些键。现在,我想通过传递这些键并将值保存在列表中来搜索多值映射中的值。什么是接近它的最佳方式。感谢。

MultiValueMap<String,String>subcountyid = new MultiValueMap<String,String>();
subcountyid = d.getSubcountyid();

ArrayList<String>subcountynames = (ArrayList<String>) subcounties.get(county_id);

所以,基本上我所有的键都在subountynames arraylist中,我想通过我的subountyid map搜索每个键的值。我应该如何处理这种情况。

0 个答案:

没有答案
相关问题