Interface matching

Report a typo

Match the functional interfaces with suitable lambda expressions or method references.

Match the items from left and right columns
IntSupplier
Consumer<String>
BiPredicate<Integer, Integer>
DoubleUnaryOperator
Function<Double, String>
(x) -> String.valueOf(x * x)
System.out::println
Math::sin
(x, y) -> x % y == 0
() -> 3
___

Create a free account to access the full topic