摘要:
Set<String> set = new HashSet<>(); set.add("a"); set.add("b"); Iterator<String> iterator = set.iterator(); for (String string : set) { iterator.next() 阅读全文
posted @ 2023-04-06 20:41
hrdom
阅读(20)
评论(0)
推荐(0)
摘要:
HashMap<String,Integer> hm = new HashMap<>(); hm.put("a", 1); hm.put("c", 2); hm.put("b", 3); Set<Entry<String, Integer>> entrySet = hm.entrySet(); En 阅读全文
posted @ 2023-04-06 17:05
hrdom
阅读(44)
评论(0)
推荐(0)