Here you can find the source of printMap(Map
public static void printMap(Map<Object, String> map)
//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); } }