Guest User

Untitled

a guest
Jan 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. public static void printMap(Map mp) {
  2. Iterator it = mp.entrySet().iterator();
  3. while (it.hasNext()) {
  4. Map.Entry pairs = (Map.Entry)it.next();
  5. System.out.println(pairs.getKey() + " = " + pairs.getValue());
  6. }
  7. }
Add Comment
Please, Sign In to add comment