【发布时间】:2016-02-07 17:37:09
【问题描述】:
我有以下 HashMap,其中键是字符串,值由 HashMap 表示。
HashMap<String, HashMap<String, Integer> outerMap = new HashMap<String,HashMap<String, Integer>();
HashMap<String, Integer> innerMap = new HashMap<String, Integer>();
innerMap.put("Amount", 2000);
outerMap.put("TutionFee", innerMap);
现在我想更新Amount 键的值。如何更新Amount 键的值?
【问题讨论】: