Java tutorial
//package com.java2s; import java.util.Map; public class Main { public static String stringifyParams(Map<String, String> params) { int pos = 0; String paramsString = ""; for (String key : params.keySet()) { if (pos == 0) { paramsString += key + "=" + params.get(key); } else { paramsString += "&" + key + "=" + params.get(key); } pos++; } return paramsString; } }