摘要: 第一种: public static void main(String[] args) { //遍历Map 第一种方式 Map<String, Integer> map1 = new HashMap<String, Integer>(); map1.put("jack", 20); map1.put 阅读全文
posted @ 2020-02-09 13:50 Yusco 阅读(387) 评论(0) 推荐(0)
摘要: public class ListDemo { public static void main(String[] args) { ArrayList<String> mList = new ArrayList<>(); mList.add("郭靖"); mList.add("黄蓉"); mList. 阅读全文
posted @ 2020-02-09 10:46 Yusco 阅读(624) 评论(0) 推荐(0)