You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -846,6 +846,27 @@ Greatest Element to Lowest Element.
846
846
<h2> </h2>
847
847
</ul>
848
848
<h1 align="center"> Comparator Interface on Tree Set </h1>
849
+
<ul>
850
+
<h3> Comparator helps to find the sorting order used in the TreeSet objects ; for example, with the implementation of the Comparator interface.The methods provided by the interface are: </h3>
851
+
852
+
<table>
853
+
<tr>
854
+
<td colspan="2">Methods of the Comparator interface</td>
855
+
</tr>
856
+
<tr>
857
+
<td >Method</td>
858
+
<td >Does This</td>
859
+
</tr>
860
+
<tr>
861
+
<td >int compare(Object obj1,Object obj2) </td>
862
+
<td >It compares its two arguments.</td>
863
+
</tr>
864
+
<tr>
865
+
<td >boolean equals(Object obj) </td>
866
+
<td >It specifies whether another object is equal to this comparator.</td>
0 commit comments