Java tutorial
//package com.java2s; import java.util.HashMap; import java.util.Map; public class Main { public static Map<String, Object> getSOSMap(String telephoneNo, String messageType, String requestTime, Integer virityWay) { Map<String, Object> map = getMap(); map.put("telephoneNo", telephoneNo); map.put("messageType", messageType); map.put("requestTime", requestTime); map.put("virityWay", virityWay); return map; } public static <K, V> Map<K, V> getMap() { return new HashMap<K, V>(); } }