- Java
- Collections Data Structure
- HashSet
Get Synchronized Set from Java HashSet
import java.util.Collections; import java.util.HashSet; import java.util.Set; publicclass Main { publicstaticvoid main(String[] args) { HashSet hashSet = new HashSet(); Set set = Collections.synchronizedSet(hashSet); } }
Related examples in the same category