摘要: list的几种遍历方式 记录练习一下 public class ListCollection { public static void main(String[] args) { ArrayList<String> lists = new ArrayList<>(); lists.add("小花") 阅读全文
posted @ 2020-07-04 10:32 yl丶 阅读(284) 评论(0) 推荐(0) 编辑
摘要: 遍历map有几种方法,记录一下。 public class MapCollection { public static void main(String[] args) { HashMap<Integer, String> map = new HashMap<>(); map.put(1,"小花") 阅读全文
posted @ 2020-07-04 01:13 yl丶 阅读(203) 评论(0) 推荐(0) 编辑