Here you can find the source of newHashMap()
public static <K, V> HashMap<K, V> newHashMap()
//package com.java2s; import java.util.HashMap; public class Main { public static <K, V> HashMap<K, V> newHashMap() { return new HashMap<K, V>(); }//from w w w .j a v a 2 s. c o m }