Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.function.DoubleConsumer;

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