Java tutorial
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); } }