实验七写完了

This commit is contained in:
2024-06-11 01:04:42 +08:00
parent b7333f4a26
commit 0272781cc3
+4
View File
@@ -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------------------------
}
}