import com.hftcollection.collections.map.NonBlockingHashMap; public class Example { public static void main(String[] args) { NonBlockingHashMap<String, Integer> map = new NonBlockingHashMap<>(); map.put("key1", 1); map.put("key2", 2); int value = map.get("key1"); System.out.println("Value: " + value); map.remove("key2"); boolean containsKey = map.containsKey("key2"); System.out.println("Contains Key: " + containsKey); } }


上一篇:
下一篇:
切换中文