摘要:
list的几种遍历方式 记录练习一下 public class ListCollection { public static void main(String[] args) { ArrayList<String> lists = new ArrayList<>(); lists.add("小花") 阅读全文
摘要:
遍历map有几种方法,记录一下。 public class MapCollection { public static void main(String[] args) { HashMap<Integer, String> map = new HashMap<>(); map.put(1,"小花") 阅读全文