摘要: map集合被使用是因为具备映射关系。 一个学校有多个教室,每个教室都有多个学生。 public class Demo { public static void main(String[] args) { HashMap<String,HashMap<String,String>> czbk = ne 阅读全文
posted @ 2020-04-08 17:27 hongxiao2020 阅读(461) 评论(0) 推荐(0)
摘要: 描述学生,map容器,学生为键,地址为值,获取map中的元素。 public class MapDemo { public static void main(String[] args) { HashMap<Student, String> hm = new HashMap<Student, Str 阅读全文
posted @ 2020-04-08 13:26 hongxiao2020 阅读(370) 评论(0) 推荐(0)