Online Java Compiler By
JavaTpoint.com
import java.util.Set; import java.util.concurrent.*; class ConcurrentHashMapnewKeySetExample1 { public static void main(String[] args) { Set
hashmap = ConcurrentHashMap.newKeySet(); hashmap.add("AA"); hashmap.add("BBB"); hashmap.add("CCC"); hashmap.add("DDD"); System.out.println(" Mappings : "+ hashmap); } }
Output