Skip to content

Commit 5cde094

Browse files
Add files via upload
1 parent 73a74dd commit 5cde094

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

HashSetDemo13.java

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import java.util.HashSet;
2+
3+
public class HashSetDemo13 {
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+
System.out.println(set);
13+
14+
Boolean b = set.contains("A");
15+
16+
System.out.println(b);
17+
18+
}
19+
20+
}

0 commit comments

Comments
 (0)