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); } }