Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.function.DoubleToLongFunction;

public class Main {

    public static void main(String[] args) {
        DoubleToLongFunction dl = (x) -> {
            return Long.MAX_VALUE - (long) x;
        };
        System.out.println(dl.applyAsLong(3.14));
    }
}