Java lambda expression [memo]

I tried a lambda expression that can be used from java8.


package demojava.demo9;

interface Rtest{
	public abstract String Res(Integer x,Integer y );

public class Demo9 {

	public static void main(String [] args) {
		Rtest rtest = (x,y)->{
			return "(" + x + ","+ y + ")\n\n";

Execution result 2020-10-11_07-08-11.png

Recommended Posts

java lambda expression memo
Java lambda expression [memo]
[Java] Lambda expression
Java lambda expression
java neutral lambda expression 1
Java lambda expression variations
Java 8 lambda expression Feature
Studying Java 8 (lambda expression)
Review java8 ~ Lambda expression ~
Java lambda expression again
[Java] Functional interface / lambda expression
Java memo
Java8 stream, lambda expression summary
Java basic learning content 9 (lambda expression)
What is a lambda expression (Java)
java anything memo
Java Silver memo
java, maven memo
Java SE 7 memo
java anything memo 2
Hello Java Lambda
Java specification memo
Java pattern memo
Now let's recap the Java lambda expression
Java development environment memo
java learning (conditional expression)
java basic knowledge memo
Java Kuche Day memo
Quarkus saves Java Lambda! ??
[Java ~ Method ~] Study memo (5)
java se 8 programmer Ⅰ memo
Java paid private memo
Understand Java 8 lambda expressions
How to use Java API with lambda expression
[Java ~ Array ~] Study memo 4
Java learning memo (basic)
(Memo) Java for statement
About Java lambda expressions
Java8 to start now ~ forEach and lambda expression ~
Introduction to lambda expression
Explain Java 8 lambda expressions
Java learning memo (interface)
[Java] Implicit inheritance memo
Java table expression injection
Java learning memo (inheritance)
java competitive programming memo
java regular expression summary
[Memo] Java Linked List
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 -
Use Lambda Layers with Java
Java (WebSphere Application Server) memo [1]
[Java] Variable name naming memo
Java memo (standard class) substring
Java learning memo (data type)
Java memo (standard class) length
Java Silver Study Method Memo
[Java ~ Boolean value ~] Study memo (2)