Skip to content

Instantly share code, notes, and snippets.

View XDo0's full-sized avatar
🪐
Working from home

D0nnie XDo0

🪐
Working from home
View GitHub Profile
@XDo0
XDo0 / Traversal of Java hashmap value
Created April 25, 2021 08:27
Traversal of Java hashmap value
Iterator< Map.Entry< Integer,String>> it = hashmap.entrySet().iterator();
while (it.hasNext()) {
Map.Entry< Integer,String> entry = it.next();
// entry.getKey()
// entry.getValue()
System.out.print(entry.getValue());
}