Java tutorial
//package com.java2s; import java.util.Map; import java.util.Map.Entry; public class Main { public static <K, V> void printMap(Map<K, V> map, String seperator) { for (Entry<K, V> entry : map.entrySet()) { System.out.println(entry.getKey() + seperator + entry.getValue()); } } }