【发布时间】:2017-11-01 23:21:10
【问题描述】:
我想访问我在 HashMap 中创建的记录。
由于某些要求,我无法创建新的数据结构来保存我的数据。
private HashMap<String, ArrayList<Record>> customerInfoTable = new
HashMap<String, ArrayList<Record>>();
【问题讨论】:
-
你尝试过什么,你在哪里卡住了?
-
for (List<Record> rs : customerInfoTable.values()) for (Record r : rs) { ... }
标签: java generics collections hashmap