diff --git a/实验7/src/task4/HelloHashMap.java b/实验7/src/task4/HelloHashMap.java index 28061b0..4ddd5c8 100644 --- a/实验7/src/task4/HelloHashMap.java +++ b/实验7/src/task4/HelloHashMap.java @@ -12,6 +12,10 @@ public class HelloHashMap { hashMapExample.put(scanner.next(), scanner.next()); } // ---------------------Begin------------------------ + hashMapExample.put("name", "lihong"); + hashMapExample.remove("firstkey"); + hashMapExample.replace("secondkey", "educode"); + System.out.println(hashMapExample); // ---------------------End------------------------ } }