Worked example
interface IntOp { int apply(int x); }
IntOp doubler = x -> x * 2; // implements apply
IntOp square = x -> x * x;
System.out.println(doubler.apply(5)); // 10
System.out.println(square.apply(4)); // 16
For more than one parameter, put them in parentheses: (a, b) -> a + b. A lambda lets you pass behavior around like a value.