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

allMatch: Testing If All Elements Match

Use allMatch to verify that every element in the stream satisfies the predicate, returning false at the first mismatch.

This lesson is for subscribers

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