Replies
A Predicate is a single-argument functional interface that returns a boolean value, either true or false. It accepts one argument and yields a result as either true or false.
1
0
0
You can call Predicate as: boolean b = stringPredicate.test("Hello World!") // returns true That's a wrap! Follow @java2blog for more such content.
0
0
0