Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.function.Predicate;

public class Main {
    public static void main(String[] args) {
        boolean sonuc = checkVisaCode(s -> (s >= 400), 405);

        System.out.println("Test result: " + sonuc);
    }

    public static boolean checkVisaCode(Predicate<Integer> pred, Integer param) {

        return pred.test(param);

    }
}