Here you can find the source of createHashMap()
public static <K, V> HashMap<K, V> createHashMap()
//package com.java2s; //License from project: Apache License import java.util.HashMap; public class Main { public static <K, V> HashMap<K, V> createHashMap() { return new HashMap<K, V>(); }//w ww. j a v a 2 s . com public static <K, V> HashMap<K, V> createHashMap(int initialCapacity) { return new HashMap<K, V>(initialCapacity); } }