实验三写完力(喜)
This commit is contained in:
@@ -12,6 +12,8 @@ public class HelloSet {
|
|||||||
}
|
}
|
||||||
// ---------------------Begin------------------------
|
// ---------------------Begin------------------------
|
||||||
hashSet.add("helloHashSet");
|
hashSet.add("helloHashSet");
|
||||||
|
hashSet.remove("cat");
|
||||||
|
hashSet.add("fish");
|
||||||
hashSet.remove("apple");
|
hashSet.remove("apple");
|
||||||
// ---------------------End------------------------
|
// ---------------------End------------------------
|
||||||
hashSet.forEach(ele -> System.out.println(ele));
|
hashSet.forEach(ele -> System.out.println(ele));
|
||||||
|
|||||||
Reference in New Issue
Block a user