Course contentsShow
Java
Lesson 1348 of 2,87030. Comparable and ComparatorPro lesson

Using reversed() with Natural Ordering

Apply reversed() to Comparator.naturalOrder() to sort elements in descending order without writing custom logic.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.