Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package functional.interfaces;
- @FunctionalInterface
- interface FuncInterface{
- void eat();
- }
- class Cat{
- }
- public class LambdaTest07 {
- public static void main(String[] args) {
- FuncInterface lambda01 = () -> new Cat();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement