From 9b0e1d1d0fd1181455abf316393ec9bb67134728 Mon Sep 17 00:00:00 2001 From: msksbr Date: Tue, 11 Jun 2024 00:01:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E4=BA=86=E5=AE=9E=E9=AA=8C?= =?UTF-8?q?=E4=B8=89=E7=9A=84=E6=B7=BB=E5=8A=A0=E5=92=8C=E7=A7=BB=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 实验7/src/task3/HelloSet.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/实验7/src/task3/HelloSet.java b/实验7/src/task3/HelloSet.java index 3317af3..9198fab 100644 --- a/实验7/src/task3/HelloSet.java +++ b/实验7/src/task3/HelloSet.java @@ -11,6 +11,8 @@ public class HelloSet { hashSet.add(scanner.next()); } // ---------------------Begin------------------------ + hashSet.add("helloHashSet"); + hashSet.remove("apple"); // ---------------------End------------------------ hashSet.forEach(ele -> System.out.println(ele)); }