Skip to content

Commit ed8015d

Browse files
Update README.md
1 parent 38206df commit ed8015d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

+9-2
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ sequenceDiagram
618618
java.util.AbstractCollection->>java.util.AbstractSet:
619619
java.util.AbstractSet->>java.util.TreeSet:
620620
```
621-
<h3> Def: Java TreeSet class implements the Set interface that uses a tree for storage. It inherits AbstractSet class and implements the NavigableSet interface. The objects of the TreeSet class are stored in ascending order. </h3>
621+
<h3> Def: Java TreeSet class implements the Set interface that uses a tree for storage. It inherits AbstractSet class and implements the NavigableSet interface and SortedSet interface. The objects of the TreeSet class are stored in ascending order. </h3>
622622

623623
<table>
624624
<tr>
@@ -641,6 +641,13 @@ sequenceDiagram
641641
<td >TreeSet</td>
642642
<td ></td>
643643
</tr>
644+
</tr>
645+
<td >SortedSet</td>
646+
<td ></td>
647+
<td ></td>
648+
<td >TreeSet</td>
649+
<td ></td>
650+
</tr>
644651
</table>
645652

646653
<ul>
@@ -654,6 +661,6 @@ sequenceDiagram
654661
<li><h3><a href= "https://github.com/AvinandanBose/JavaCollectionFramework/blob/main/TreeSetDemo.java" > Tree Set Functions-1(From HashSet)</a></h3></li>
655662
</ul>
656663

657-
<h3> Continuing...: As TreeSet implements Set and Navigable Set interface both , hence it uses both functions of Set as well as NavigableSet. </h3>
664+
<h3> Continuing...: As TreeSet implements Set , Navigable Set and SortedSet interface , hence it uses functions of Set , NavigableSet and SortedSet interface. </h3>
658665

659666
</ul>

0 commit comments

Comments
 (0)