List<String> list = Collections.synchronizedList(new ArrayList<>()); Set<String> set = Collections.synchronizedSet(new HashSet<>()); Map<String, Integer> map = Collections.synchronizedMap(new HashMap<>());