Languages

How to iterate over map in java?

4 points
Asked by:
Root-ssh
75700

I have simple java HashMap from java.util package.

eg:

Map<String, Integer> map = new HashMap<>();
map.put("A", 1);
map.put("B", 2);
map.put("C", 3);

What is the best way I can iterate over all keys and values?

0 answers
Native Advertising
­čÜÇ
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - friendly IT community for everyone.

ÔŁĄ´ŞĆ­čĺ╗ ­čÖé

Join