Java tutorial
//package com.java2s; //License from project: Apache License import java.util.Collections; import java.util.HashMap; import java.util.Map; public class Main { public static <K, V> Map<K, V> newSyncronizedHashMap() { return Collections.synchronizedMap(new HashMap<>()); } }