Friday, 18 October 2013

java HashMap Iterator

java HashMap Iterator
using for each loop

for (Map.Entry entry : hashMap.entrySet()) {
System.out.println("key,val: " + entry.getKey() + "," + entry.getValue());
}


No comments:

Post a Comment