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

The nullsLast() Method: Null-Safe Comparisons

Use Comparator.nullsLast() to wrap a comparator so null values are always sorted after non-null values.

This lesson is for subscribers

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