Java tutorial
//package com.java2s; import java.util.Map; public class Main { public static <K, V> String mapToString(Map<K, V> map) { if (map == null) return null; return map.toString(); } }