Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void printMap(Map mp) {
- Iterator it = mp.entrySet().iterator();
- while (it.hasNext()) {
- Map.Entry pairs = (Map.Entry)it.next();
- System.out.println(pairs.getKey() + " = " + pairs.getValue());
- }
- }
Add Comment
Please, Sign In to add comment