Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ed44197

Browse files
authoredDec 3, 2022
Add files via upload
1 parent dc20773 commit ed44197

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
 

‎HashSetDemo20.java

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

0 commit comments

Comments
 (0)
Please sign in to comment.