import java.util.Collections;import java.util.HashMap;import java.util.Map;public class Main { public static void main(String[] args) { HashMap hashMap = new HashMap(); Map map = Collections.synchronizedMap(hashMap); }}