Java Professional — Hard
Key points
- The code filters elements using the `filter` method
- The `findFirst` method returns the first element of the stream
- The `ifPresent` method prints the element if it is present
Ready to go further?
Related questions
Java Professional — Hard
Key points
Ready to go further?
Related questions