Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;

import java.util.HashMap;
import java.util.List;

public class Main {

    public static void mergeParam(HashMap<String, Object> params, List<NameValuePair> valuePair) {
        if (params != null) {
            for (HashMap.Entry<String, Object> entry : params.entrySet()) {
                String key = entry.getKey();
                String value = String.valueOf(entry.getValue());
                valuePair.add(new BasicNameValuePair(key, value));
            }
        }
    }
}