Skip to content

Commit c984a04

Browse files
Update README.md
1 parent 9dfa828 commit c984a04

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,27 @@ Subset :→ From Element : 2 , boolean fromInclusive : false
711711
And To Element: 6 , boolean toInclusive : false
712712
IT will return set: [3,4,5]
713713

714+
````
715+
716+
<li><h3><a href= "https://github.com/AvinandanBose/JavaCollectionFramework/blob/main/TreeSetDemo9.java" >Tail Set[Sorted Set Interface]</a></h3></li>
717+
718+
```Syntax
719+
Implemented From : java.util.SortedSet
720+
It returns Set from a Starting Element set to TailSet function.
721+
i.e. if Set = [1,2,3,4,5,6];
722+
And tailset :→ From Element : 2
723+
IT will return set: [2,3,4,5,6]
724+
````
725+
726+
<li><h3><a href= "https://github.com/AvinandanBose/JavaCollectionFramework/blob/main/TreeSetDemo10.java" >Head Set[Sorted Set Interface]</a></h3></li>
727+
728+
```Syntax
729+
Implemented From : java.util.SortedSet
730+
It returns Set upto a Ending Element but not the Ending Element set to HeadSet function.
731+
i.e. if Set = [1,2,3,4,5,6];
732+
And To Element: 6 ,
733+
IT will return set: [1,2,3,4,5]
734+
714735
````
715736

716737
</ul>

0 commit comments

Comments
 (0)