Java tutorial
import java.util.function.IntConsumer; public class Main { public static void main(String[] args) { IntConsumer ic = (x) -> System.out.println(x); ic.andThen(ic).accept(3); } }