This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Understand why min() and max() return Optional<T> and how to safely handle empty streams without exceptions.
You've completed the free preview. Subscribe to unlock every lesson in every course.