Guest User

Untitled

a guest
Aug 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. package com.techpredators.functionalinterfaces;
  2.  
  3. import java.util.function.Predicate;
  4.  
  5. public class PredicateInterfaceTest {
  6. public static void main(String[] args)
  7. {
  8. Predicate<Integer> lesserthan = i -> (i < 18);
  9.  
  10. System.out.println(lesserthan.test(10));
  11. }
  12. }
Add Comment
Please, Sign In to add comment