Here you can find the source of printParameterMap(Map
public static String printParameterMap(Map<String, String[]> parameters)
//package com.java2s; //License from project: Open Source License import java.util.Arrays; import java.util.Map; import java.util.Map.Entry; public class Main { public static String printParameterMap(Map<String, String[]> parameters) { StringBuilder sb = new StringBuilder(); sb.append("{"); for (Entry<String, String[]> entry : parameters.entrySet()) { sb.append("[" + entry.getKey() + "->" + Arrays.toString(entry.getValue()) + "]"); }// ww w. j a va 2 s . com sb.append("}"); return sb.toString(); } }