Skip to content

Commit 508ce6e

Browse files
Update README.md
1 parent 9f67f34 commit 508ce6e

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This is all about Java Collection.
44

55
<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>
66

7-
<h3> <ins> The Collection Framework Interfaces </ins></h3>
7+
<h2> <ins> The Collection Framework Interfaces </ins></h2>
88
<ul>
99
<li><h3>1.Collection</h3> </li>
1010
<li><h3>2.Deque</h3> </li>
@@ -17,7 +17,7 @@ This is all about Java Collection.
1717
<li><h3>9.Navigable Set</h3> </li>
1818
</ul>
1919

20-
<h3> <ins>1. The Collection Interface </ins> </h3>
20+
<h2> <ins>1. The Collection Interface </ins> </h2>
2121

2222
<br>
2323

@@ -61,6 +61,9 @@ and LinkedList Class,through the help of Collection interface.
6161

6262
```
6363

64+
<h2> <ins> 2 . Sets </ins></h2>
65+
66+
6467
```mermaid
6568
graph TD;
6669
Collection-->Set;
@@ -72,5 +75,23 @@ graph TD;
7275
7376
```
7477

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.
93+
```
94+
95+
7596
</h3>
7697
</ul>

0 commit comments

Comments
 (0)