Skip to content

Commit 0cc19aa

Browse files
Update README.md
1 parent 9f3d891 commit 0cc19aa

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,8 +713,32 @@ sequenceDiagram
713713
It has all functions like it have in Iterator i.e. CompareTo, Next , hasNext .
714714

715715
````
716+
717+
<li><h3><a href= "https://github.com/AvinandanBose/JavaCollectionFramework/blob/main/TreeSetDemo15.java" >First And Last</a></h3></li>
718+
719+
```Syntax
720+
721+
First: Returns first (lowest)element in the set.
722+
i.e. set = [2,3,4,1,5,6] , then it will return 1.
723+
724+
Last: Returns last (highest)element in the set.
725+
i.e. set = [2,3,4,1,5,7,6] , then it will return 7.
726+
````
727+
728+
<li><h3><a href= "https://github.com/AvinandanBose/JavaCollectionFramework/blob/main/TreeSetDemo16.java" >Poll First And Poll Last</a></h3></li>
729+
730+
```Syntax
716731

732+
Poll First: Retrieves and removes the first (lowest) element, or returns null if this set is empty.
733+
i.e. set = [2,3,4,1,5,6] , then it will return 1.
734+
And set will be : [2,3,4,5,6]
717735

736+
Poll Last: Retrieves and removes the last (highest) element, or returns null if this set is empty.
737+
i.e. set = [2,3,4,1,5,7,6] , then it will return 7.
738+
And set will be : [2,3,4,1,5,6]
739+
````
740+
741+
<h2> </h2>
718742
<h2> </h2>
719743
<li><h3><a href= "https://github.com/AvinandanBose/JavaCollectionFramework/blob/main/TreeSetDemo6.java" >Sub Set[Sorted Set Interface]</a></h3></li>
720744

@@ -809,6 +833,7 @@ Implemented From : java.util.NavigableSet
809833

810834
````
811835
<h2> </h2>
836+
<h2> </h2>
812837
</ul>
813838

814839
</ul>

0 commit comments

Comments
 (0)