Java tutorial
import java.util.function.DoubleConsumer; public class Main { public static void main(String[] args) { DoubleConsumer d = (x) -> System.out.println(x * x); d.accept(0.23); } }