Java语法快查 简单记录LeetCode刷题过程中常用的Java语法 ne Hash Map 123456Set<Integer> hashmap = new HashSet<Integer>();if (hashmap.add(x)) { System.out.println("x is not in the hash map.");} else { System.out.println("x is in the hash map.");} Java 本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处! LeetCode2020 0622-0628 上一篇 前端的轮子们 下一篇 Please enable JavaScript to view the comments powered by Disqus.