-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHashSet_Collection9.java
More file actions
63 lines (57 loc) · 1.04 KB
/
Copy pathHashSet_Collection9.java
File metadata and controls
63 lines (57 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package basicprograms;
import java.util.HashSet;
public class HashSet_Collection9 {
public static void main(String[] args) {
// TODO Auto-generated method stub
HashSet s1=new HashSet();
s1.add("Garima");
s1.add("Lekhi");
s1.add("Mahindru");
s1.add("W/O");
s1.add("Shubham");
s1.add("Mahindru");
s1.add(null);
s1.add(null);
s1.add(null);
s1.add(null);
s1.add(null);
s1.add(20);
s1.add(1);
s1.add(2232);
s1.add(22.32);
s1.add(true);
s1.add(false);
s1.add('M');
s1.add('K');
s1.add('T');
s1.add(33.3333);
s1.add("Garima");
s1.add("Lekhi");
s1.add("Mahindru");
s1.add("Garima");
s1.add("Lekhi");
s1.add("Mahindru");
s1.add("W/O");
s1.add("Shubham");
s1.add("Mahindru");
s1.add(null);
s1.add(null);
s1.add(null);
s1.add(null);
s1.add(null);
s1.add(20);
s1.add(1);
s1.add(2232);
s1.add(22.32);
s1.add(true);
s1.add(false);
s1.add('M');
s1.add('K');
s1.add('T');
s1.add(33.3333);
s1.add("Garima");
s1.add("Lekhi");
s1.add("Mahindru");
System.out.println(s1);
}
}