@@ -733,6 +733,49 @@ IT will return set: [3,4,5]
733733 IT will return set : [1,2,3,4,5]
734734
735735 ` ` ` `
736+
737+ <li><h3><a href= "https://github.com/AvinandanBose/JavaCollectionFramework/blob/main/TreeSetDemo11.java" >Tail Set[Navigable Set Interface]</a></h3></li>
738+
739+ ` ` ` Syntax
740+ Implemented From : java.util.NavigableSet
741+ It returns Set from a Starting Element set to TailSet function if Boolean Inclusive set to True,
742+ Else returns Set from a Starting Element set to TailSet function except the Starting Element ,
743+ if Boolean Inclusive set to False.
744+
745+ i.e. if Set = [1,2,3,4,5,6];
746+ And tailset :→ From Element : 2
747+ And inclusive : true
748+ IT will return set: [2,3,4,5,6]
749+
750+ Else:
751+
752+ tailset :→ From Element : 2
753+ And inclusive : false
754+ IT will return set: [3,4,5,6]
755+
756+ ` ` ` `
757+
758+ <li><h3><a href= "https://github.com/AvinandanBose/JavaCollectionFramework/blob/main/TreeSetDemo12.java" >Head Set[Navigable Set Interface]</a></h3></li>
759+
760+ ` ` ` Syntax
761+ Implemented From : java.util.NavigableSet
762+ It returns Set upto a Ending Element but not the Ending Element set to HeadSet function,
763+ if Boolean Inclusive set to True,
764+ Else It returns Set upto a Ending Element with the Ending Element set to HeadSet function,
765+ if Boolean Inclusive set to False.
766+
767+ i.e. if Set = [1,2,3,4,5,6];
768+ And HeadSet :→ To Element : 6
769+ And inclusive : True
770+ IT will return set : [1,2,3,4,5]
771+
772+ Else :
773+
774+ tailset :→ To Element : 6
775+ And inclusive : false
776+ IT will return set : [1,2,3,4,5,6]
777+
778+ ` ` ` `
736779
737780</ul>
738781
0 commit comments