Java Map Print printMapObject(Map mapobject)

Here you can find the source of printMapObject(Map mapobject)

Description

print Map Object

License

Open Source License

Parameter

Parameter Description
mapobject a parameter

Declaration

public static void printMapObject(Map<?, ?> mapobject) 

Method Source Code

//package com.java2s;

import java.util.Iterator;

import java.util.Map;

public class Main {
    /**//from   w  ww .  j  a v a 2 s  .  c o  m
     * @param mapobject
     */
    public static void printMapObject(Map<?, ?> mapobject) {
        Iterator<?> iter = mapobject.keySet().iterator();
        while (iter.hasNext()) {
            Object keyobj = iter.next();
            Object valobj = mapobject.get(keyobj);
            System.out.println(keyobj + ": " + valobj);
        }
    }
}

Related

  1. printMap(Map map)
  2. printMap(Map map)
  3. printMap(Map map, int depth)
  4. printMap(String mapLabel, Map map)
  5. printMapGeneral(Map map)
  6. printMapStrings(Map> map, String mapDescription)
  7. printMapToString(Map map)
  8. printNERScore(Map scores)
  9. printOptions(Map options)