Lambda with multiple parameters in Java

BiFunction<Integer, Integer, Integer> avgFunc = (ab) -> (a + b)/2;
int avg = avgFunc.apply(3, 5);
//avg is 4