检查下面的代码:
String jsonString = writer.toString(); JSONObject jsonObj = new JSONObject(jsonString); defaultCurrencyValue = jsonObj.getString(DefaultCurrencyKey); currenciesTypes = jsonObj.get(CurrenciesKey);
当我使用 Debugger 时获得 curenciesType 对象类变量的值。
currenciesTypes JSONObject (id=830084916104) myHashMap HashMap (id=830084916120) [0] HashMap$HashMapEntry (id=830084916440) key "PKR" (id=830084916256) value "Rs" (id=830084916368) [1] HashMap$HashMapEntry (id=830084917208) key "EUR" (id=830084917064) value "€" (id=830084917176) [2] HashMap$HashMapEntry (id=830084916696) [3] HashMap$HashMapEntry (id=830084916952)
如何在数组列表中保存 key和 它的 values?
隔江千里
Helenr
相关分类