Skip to content

Functions

Rahul Chhabra edited this page Jun 13, 2017 · 1 revision

Functions are practically Consumers with a return type.

TriFunction<Integer, Integer, Integer, Integer> sumIntegers = (t, u, v) -> t + u + v;
System.out.println(sumIntegers.apply(5, 6, 7));
Clone this wiki locally