Here you can find the source of createHashMap(Object key, Object value)
public static Map<Object, Object> createHashMap(Object key, Object value)
//package com.java2s; //License from project: Open Source License import java.util.HashMap; import java.util.Map; public class Main { public static Map<Object, Object> createHashMap() { return new HashMap<Object, Object>(); }/*from w ww.j a v a 2 s.c o m*/ public static Map<Object, Object> createHashMap(Object key, Object value) { Map<Object, Object> map = new HashMap<Object, Object>(); map.put(key, value); return map; } }