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