Java tutorial
import java.util.function.IntUnaryOperator; public class Main { public static void main(String[] args) { IntUnaryOperator i = (x) -> x * x; System.out.println(i.applyAsInt(2)); } }