Here you can find the source of hashmap()
public static <K, V> HashMap<K, V> hashmap()
//package com.java2s; //License from project: LGPL import java.util.HashMap; public class Main { public static <K, V> HashMap<K, V> hashmap() { return new HashMap<K, V>(); }/* w w w . ja v a 2 s . c om*/ }