Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is a Predicate in Java?
Think about functions that return true or false.
Provide an example of a Consumer.
What does a Consumer do with its input?
What does a Predicate do?
What type of values does a Predicate give?
True or False: A Supplier takes an input parameter.
Consider the definition of a Supplier.
Create a Predicate that evaluates if an input string starts with 'A'.
Think about string methods that act on the starting character.
Implement a Function that takes a list of integers and returns a list of their squares.
Use stream operations to transform the list.
6 more questions in this section. Enroll free to practise them all.
Enroll free