Skip to content

Commit efe8dc6

Browse files
Add files via upload
1 parent 5cde094 commit efe8dc6

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

HashSetDemo14.java

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

0 commit comments

Comments
 (0)