public static void main(String[] args) {
Map<String, String> map = new HashMap<>();
map.put(“mldn”, “老王”);//增加内容
map.put(“zhinangtuan”, “隔壁的”);
map.put(“mldjava”, “好的”);
String string = map.get(“zhinangtuan”);//根据key取出value值
System.out.println(“取出的内容是:”+string+map.get(“mldn”));
}
11-30
7211