Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
/*
 * @package ecfirm.net
 * @copyright Copyright (C) kilmeny.net. All rights reserved.
 * @license GNU General Public License version 2 or later.
 */

import java.util.HashMap;

public class Main {
    public static HashMap<String, String> getApiPost(String[] keys, String[] values) {
        HashMap<String, String> box = new HashMap<>();
        int i = 0;
        for (String value : values) {
            if (!value.isEmpty())
                box.put(keys[i], value);
            i++;
        }
        return box;
    }
}