Java Map Print printMap(Map map)

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

Description

print Map

License

Apache License

Declaration

public static void printMap(Map<Object, String> map) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.Map;

public class Main {
    public static void printMap(Map<Object, String> map) {
        for (Object key : map.keySet()) {
            println("key: " + key + " value: " + map.get(key));
        }//from w  w  w  .j  a  v  a  2  s  .c  om
    }

    public static void println(String str) {
        System.out.println(str);
    }
}

Related

  1. printMap(Map theMap)
  2. printMap(Map mp)
  3. printMap(Map map)
  4. printMap(Map map)
  5. printMap(Map map)
  6. printMap(Map map)
  7. printMap(Map map)
  8. printMap(Map map, int depth)
  9. printMap(String mapLabel, Map map)