Course contentsShow
Java
Lesson 1527 of 2,87033. Streams API: Terminal OperationsPro lesson

Working with Optional Results from min and max

Understand why min() and max() return Optional<T> and how to safely handle empty streams without exceptions.

This lesson is for subscribers

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