Java HashMap Convert HashMapToParamsString(HashMap params)

Here you can find the source of HashMapToParamsString(HashMap params)

Description

Hash Map To Params String

License

Open Source License

Declaration

public static String HashMapToParamsString(HashMap<String, String> params) 

Method Source Code


//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();
    }
}

Related

  1. hashMapToArray(HashMap map)
  2. hashMapToString(HashMap map)
  3. toArrayListHashMapStrObj(Object object)