HashMap からプロパティを取得したい。
HashMap<String, Object> getProperties()
真のプロパティを取得したい。
例:
HashMap<String, String> newMap = new HashMap<String, String>();
newMap.put("property", "shhh_secret");
String value = newMap.get("property");
また
Set s = newMap.keySet();
for (Iterator iter = s.iterator(); iter.hasNext()) {
newMap.get(s);
}
また
Iterator iter = newMap.keySet().iterator();
while (iter.hasNext()) {
...
}
あなたを助けることができる質問:
http://www.coderanch.com/t/407505/java/java/Retrieve-values-hashmap