Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.function.LongPredicate;

public class Main {

    public static void main(String[] args) {
        LongPredicate i = (l) -> l > 0;
        LongPredicate j = (l) -> l == 0;

        System.out.println(i.or(j).test(Long.MAX_VALUE));
    }
}