Java tutorial
//package com.java2s; import java.util.HashMap; import java.util.Map; public class Main { public static Map<String, Object> getOrderAppointmentMap(String ownerTel, String bookingWay, String submitPic, String sendName, Integer addrProvice, Integer addrCity, String addrDetail) { Map<String, Object> map = getMap(); map.put("ownerTel", ownerTel); map.put("bookingWay", bookingWay); map.put("submitPic", submitPic); map.put("sendName", sendName); map.put("addrProvice", addrProvice); map.put("addrCity", addrCity); map.put("addrDetail", addrDetail); return map; } public static <K, V> Map<K, V> getMap() { return new HashMap<K, V>(); } }