实现了实验三的添加和移除
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user