Java Map Print printMap(Map map)

Here you can find the source of printMap(Map map)

Description

print Map

License

Open Source License

Declaration

public static void printMap(Map map) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Iterator;
import java.util.Map;

public class Main {
    public static void printMap(Map map) {
        Iterator itr = map.keySet().iterator();
        System.out.println("-----Printing Map-----");
        while (itr.hasNext()) {
            Object obj = itr.next();
            System.out.println(obj + " : " + map.get(obj));
        }//from ww  w  .j  ava 2s .  c  o m
        System.out.println("-----End Of Map-----");
    }
}

Related

  1. printHttpMessage(String statusLine, Map headers)
  2. printItems(HashMap map)
  3. printKeys(Map m)
  4. printMap(final Map msg)
  5. printMap(HashMap map)
  6. printMap(Map mp)
  7. printMap(Map theMap)
  8. printMap(Map mp)
  9. printMap(Map map)