Java tutorial
import java.util.function.BiConsumer; public class Main { public static void main(String[] args) { BiConsumer<String, String> biConsumer = (x, y) -> { System.out.println(x); System.out.println(y); }; biConsumer.andThen(biConsumer).accept("java2s.com", " tutorial"); } }