Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. package functional.interfaces;
  2.  
  3. @FunctionalInterface
  4. interface FuncInterface{
  5. void eat();
  6. }
  7.  
  8. class Cat{
  9.  
  10. }
  11. public class LambdaTest07 {
  12.  
  13. public static void main(String[] args) {
  14. FuncInterface lambda01 = () -> new Cat();
  15. }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement