Get Synchronized Set from Java TreeSet example : TreeSet « Collections Data Structure « Java
- Java
- Collections Data Structure
- TreeSet
Get Synchronized Set from Java TreeSet example
import java.util.Collections;
import java.util.Set;
import java.util.TreeSet;
public class Main {
public static void main(String[] args) {
TreeSet treeSet = new TreeSet();
Set set = Collections.synchronizedSet(treeSet);
}
}
Related examples in the same category