I have a HashMap:
HashMap
private HashMap example = new HashMap();
Now I would lik
I did it using String map (if you're working with String Map).
for (Object obj : dados.entrySet()) { Map.Entry entry = (Map.Entry) obj; System.out.print("Key: " + entry.getKey()); System.out.println(", Value: " + entry.getValue()); }