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

anyMatch: Testing If Any Element Matches

Use anyMatch to check if at least one element in the stream satisfies the given predicate, returning true or false.

This lesson is for subscribers

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