Java 8
lambda expression is a function: (parameters) -> expression or (parameters) -> { statements; } 1. (int x, int y) -> x + y // takes two integers and returns their sum 2. (x, y) -> x - y // takes two numbers and returns their difference 3. () -> 42 // takes no values and returns 42 4. (String s) -> System.out.println(s) // takes a string, prints its value to the console, and returns nothing 5. x -> 2 * x // takes a number...