Hashset和Hashmap的区别
摘要:面试中经常被问到HashMap与HashSet的区别。于是本渣静下心来总结了一下HashSet与HashMap的区别。 先了解一下HashMap跟HashSet HashSet: HashSet实现了Set接口,它不允许集合中出现重复元素。当我们提到HashSet时,第一件事就是在将对象存储在 Ha
阅读全文
posted @ 2018-03-30 23:42
posted @ 2018-03-30 23:42
posted @ 2018-03-19 21:17
posted @ 2018-03-19 14:28
posted @ 2018-03-18 23:36
posted @ 2018-03-18 23:32