Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.techpredators.functionalinterfaces;
- import java.util.function.Predicate;
- public class PredicateInterfaceTest {
- public static void main(String[] args)
- {
- Predicate<Integer> lesserthan = i -> (i < 18);
- System.out.println(lesserthan.test(10));
- }
- }
Add Comment
Please, Sign In to add comment