Online Java Compiler By
JavaTpoint.com
import java.util.*; public class CollectionsSynchronizedNavigableMapExample1 { public static void main(String[] args) { NavigableMap
map = new TreeMap
(); map.put("3", "Java"); map.put("4", "JavaTpoint"); map.put("2", "Facebook"); map.put("1", "Google"); Map
synmap = Collections.synchronizedNavigableMap(map); System.out.println("Synchronized navigable map is :" + synmap); } }
Output