You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+23-2Lines changed: 23 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ This is all about Java Collection.
4
4
5
5
<h3> <i> java.util </i> →Package contains the collection classes let us to group elements in various ways . The Collection Classes also define several methods that provide easier way of working with items . These classes are important , not just for their but because many other Java methods use or return objects of these classes such as the <i>ArrayList</i> and <i>HashMap</i> classes. Collection package added to JSE 1.2 Java SE 8 has significantly increased the power and streamlined the use of collection framework. </h3>
6
6
7
-
<h3> <ins> The Collection Framework Interfaces </ins></h3>
7
+
<h2> <ins> The Collection Framework Interfaces </ins></h2>
8
8
<ul>
9
9
<li><h3>1.Collection</h3> </li>
10
10
<li><h3>2.Deque</h3> </li>
@@ -17,7 +17,7 @@ This is all about Java Collection.
17
17
<li><h3>9.Navigable Set</h3> </li>
18
18
</ul>
19
19
20
-
<h3> <ins>1. The Collection Interface </ins> </h3>
20
+
<h2> <ins>1. The Collection Interface </ins> </h2>
21
21
22
22
<br>
23
23
@@ -61,6 +61,9 @@ and LinkedList Class,through the help of Collection interface.
61
61
62
62
```
63
63
64
+
<h2> <ins> 2 . Sets </ins></h2>
65
+
66
+
64
67
```mermaid
65
68
graph TD;
66
69
Collection-->Set;
@@ -72,5 +75,23 @@ graph TD;
72
75
73
76
```
74
77
78
+
```Syntax
79
+
80
+
Collection: It is the top of the collection hierarchy. It supports basic grouping of elements.
81
+
82
+
Set: It extends Collection to implement sets, in which all elements must be unique.
83
+
84
+
SortedSet: It extends Set to implement a sorted set.
85
+
86
+
HashSet: It extends Set to implement a hash set.
87
+
88
+
LinkedListSet: It extends HashSet to implement a Linked List Set.
89
+
90
+
NavigableSet: It extends SortedSet to implement a Navigable Set.
91
+
92
+
Tree Set: It extends NavigableSet to implement a Tree Set.
0 commit comments