Skip to content

Commit e5c2ff3

Browse files
Add files via upload
1 parent d9171e1 commit e5c2ff3

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

HashSetDemo1.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import java.util.HashSet;
2+
3+
public class HashSetDemo1 {
4+
5+
public static void main(String[] args) {
6+
HashSet<String> set = new HashSet<>();
7+
set.add("A");
8+
set.add("a");
9+
set.add("B");
10+
set.add("b");
11+
System.out.println(set);
12+
set.remove("a");
13+
System.out.println(set);
14+
15+
}
16+
17+
18+
}

0 commit comments

Comments
 (0)