java neutral lambda expression 1

java neutral lambda table expression use 1

1, lambda table expression type in java, possible meeting charge anonymous internal type 2, java neutral function tangent (Functional Interface commentary) Note: Function interface, one-of-a-kind abstraction method, one-of-a-kind method, anonymous method, lambda expression

lamda table form replacement fee anonymous internal type method

@FunctionalInterface
interface ExecuteAble{
    void say(String name,String msg);
}

public class RobotT{
    public void say(ExecuteAble exe){
         exe.say("Robot Lucy "," is laughing hahahaha......");
    }
}

public class TestLambda{
    public static void main (String[] args){
        Robot t1 _new Robot();
        t1.say(
            (name,msg) -> {
                              system.out.println(name + msg);
                          } );
        Robot t2 _new Robot();
        //change the contents of saying
        //annomous inner class
        t2.say(new ExecuteAble(){
             public void say(String name,String msg){
                 system.out.println(name + msg);
             }
        })
    }
}

Recommended Posts

java neutral lambda expression 1
[Java] Lambda expression
Java lambda expression
Java lambda expression variations
Java 8 lambda expression Feature
java lambda expression memo
Java lambda expression [memo]
Studying Java 8 (lambda expression)
Review java8 ~ Lambda expression ~
Java lambda expression again
[Java] Functional interface / lambda expression
Java8 stream, lambda expression summary
Java basic learning content 9 (lambda expression)
What is a lambda expression (Java)
Hello Java Lambda
Now let's recap the Java lambda expression
Quarkus saves Java Lambda! ??
Understand Java 8 lambda expressions
How to use Java API with lambda expression
About Java lambda expressions
Java8 to start now ~ forEach and lambda expression ~
Introduction to lambda expression
Explain Java 8 lambda expressions
Java table expression injection
java regular expression summary
Java Lambda Command Pattern
Java8 Lambda expression & Stream design pattern reconsideration --Command pattern -
Getting Started with Legacy Java Engineers (Stream + Lambda Expression)
Java8 Lambda Expression & Stream Design Pattern Rethinking --Null Object Pattern -
Java8 Lambda expression & Stream design pattern reconsideration --Template Method pattern -
[Java] Introduction to lambda expressions
What is a lambda expression?
Memoization recursion with lambda expression
Assign a Java8 lambda expression to a variable and reuse it
Java8 Lambda Expression & Stream Design Pattern Rethinking --Chain of Responsibility Pattern -
[Introduction to Java] About lambda expressions
About Lambda, Stream, LocalDate of Java8
Is Java on AWS Lambda slow?
Hello World on AWS Lambda + Java
Try an If expression in Java
Java
Getting started with Java lambda expressions
Java
The origin of Java lambda expressions
How to use Java lambda expressions
Comparison of thread implementation methods in Java and lambda expression description method
I want to ForEach an array with a Lambda expression in Java
Implement API Gateway Lambda Authorizer in Java Lambda
I tried to summarize Java lambda expressions
Nowadays Java lambda expressions and Stream API
[Java] for Each and sorted in Lambda
AWS Lambda with Java starting now Part 1
Working with huge JSON in Java Lambda
I've reviewed Java's lambda expression, stream API, six months after I started Java.