18 lines
272 B
Plaintext
18 lines
272 B
Plaintext
|
import java.lang.Runnable;
|
||
|
import java.lang.String;
|
||
|
import java.lang.System;
|
||
|
import java.io.PrintStream;
|
||
|
|
||
|
public class LambdaRunnable {
|
||
|
|
||
|
public LambdaRunnable(){
|
||
|
|
||
|
|
||
|
Runnable lam = () -> {
|
||
|
System.out.println("Runnable is running");
|
||
|
};
|
||
|
lam.run();
|
||
|
}
|
||
|
}
|
||
|
|