JavaStreamfindFirst

Returns an Optional describing the first element.

Syntax

stream.findFirst()