问题:HashMap的keySet()方法底层如何调用的?
首先看keySet()的使用:
Map<String, Integer> map = new HashMap<String, Integer>();
map.put("a", 1);
map.put("b", 2);
map
问题:HashMap的keySet()方法底层如何调用的?
首先看keySet()的使用:
Map<String, Integer> map = new HashMap<String, Integer>();
map.put("a", 1);
map.put("b", 2);
map