2018-03-07 07:41:46 +01:00
|
|
|
import java.lang.Runnable;
|
|
|
|
import java.lang.String;
|
|
|
|
import java.lang.System;
|
2023-11-03 15:45:14 +01:00
|
|
|
import java.io.PrintStream;
|
2017-11-16 16:56:12 +01:00
|
|
|
|
2023-11-02 13:07:42 +01:00
|
|
|
public class LambdaRunnable {
|
2017-11-16 16:56:12 +01:00
|
|
|
|
2023-11-02 13:07:42 +01:00
|
|
|
public LambdaRunnable(){
|
2017-11-16 16:56:12 +01:00
|
|
|
|
2023-11-02 13:07:42 +01:00
|
|
|
|
2023-11-03 15:45:14 +01:00
|
|
|
Runnable lam = () -> {
|
|
|
|
System.out.println("Runnable is running");
|
|
|
|
};
|
2017-11-16 16:56:12 +01:00
|
|
|
lam.run();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|