Here you can find the source of HashMapToParamsString(HashMap
public static String HashMapToParamsString(HashMap<String, String> params)
//package com.java2s; //License from project: Open Source License import java.util.HashMap; public class Main { public static String HashMapToParamsString(HashMap<String, String> params) { String output = ""; for (String key : params.keySet()) { output += key + ":" + params.get(key) + " "; }/*from ww w . j a va2s . co m*/ return output.trim(); } }