Blogger

Delete comment from: Java67

Anonymous said...

Hi Zavier, you can try this :

HashMap map = new HashMap();//or your hashmap already populated
for (Entry entry : map.entrySet()) {
String key = entry.getKey().toString();
String value = entry.getValue().toString();

//do what you want with theses strings
}

Baptiste

Sep 3, 2013, 10:21:13 AM


Posted to 10 Examples of HashMap in Java - Programming Tutorial

Google apps
Main menu