Skip to content

Commit 6144734

Browse files
Add files via upload
1 parent bae1076 commit 6144734

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Diff for: setDemo1.java

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

0 commit comments

Comments
 (0)