From 0272781cc3c15b037aeb46cf78f68c46106e9235 Mon Sep 17 00:00:00 2001 From: msksbr Date: Tue, 11 Jun 2024 01:04:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E9=AA=8C=E4=B8=83=E5=86=99=E5=AE=8C?= =?UTF-8?q?=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 实验7/src/task4/HelloHashMap.java | 4 ++++ 1 file changed, 4 insertions(+) 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------------------------ } }