Duration: 16:25 min
Summary: In this video, we will discuss TreeSet but for generic types (we will use specific types like Integer, instead of Object). After adding some elements into the set, we will experiment with new sets of methods. We will see how lower() and higher() work, and how they are different from floor() and ceiling(). Also, we will see how to use pollFirst() and pollLast(). Finally, we will use descendingSet() to see how we can print the list of elements in descending order.