Java tutorial
//package com.java2s; import java.util.HashMap; import java.util.Map; public class Main { public static Map<String, String> getAliPayParams(String subject, String body, String out_trade_no, String total_fee, String pay_business) { Map<String, String> map = getMap(); map.put("subject", subject); map.put("body", body); map.put("out_trade_no", out_trade_no); map.put("total_fee", total_fee); map.put("pay_business", pay_business); return map; } public static <K, V> Map<K, V> getMap() { return new HashMap<K, V>(); } }