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 fbe1c62

Browse files
authoredNov 29, 2022
Add files via upload
1 parent 8c6dff7 commit fbe1c62

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
 

‎javacollection2.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import java.util.Collection;
2+
import java.util.HashSet;
3+
class javacollection2 {
4+
5+
public static void main(String[] args) {
6+
Collection<Integer> a = new HashSet<Integer>();
7+
a.add(1);
8+
System.out.println(a);
9+
}
10+
11+
12+
}

0 commit comments

Comments
 (0)
Please sign in to comment.