Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.function.BooleanSupplier;

public class Main {
    public static void main(String[] args) {
        BooleanSupplier bs = () -> true;
        System.out.println(bs.getAsBoolean());

        int x = 0, y = 1;
        bs = () -> x > y;
        System.out.println(bs.getAsBoolean());
    }
}