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