Get Synchronized Map from Java TreeMap : TreeMap « Collections Data Structure « Java
- Java
- Collections Data Structure
- TreeMap
Get Synchronized Map from Java TreeMap
import java.util.Collections;
import java.util.Map;
import java.util.TreeMap;
public class Main {
public static void main(String[] args) {
TreeMap treeMap = new TreeMap();
Map map = Collections.synchronizedMap(treeMap);
}
}
Related examples in the same category