Fix up runnable

This commit is contained in:
Daniel Holle 2023-11-03 15:45:14 +01:00
parent 9ad5b76542
commit f588ece7c3

View File

@ -1,13 +1,16 @@
import java.lang.Runnable;
import java.lang.String;
import java.lang.System;
import java.io.PrintStream;
public class LambdaRunnable {
public LambdaRunnable(){
Runnable lam = () -> {var a;};
Runnable lam = () -> {
System.out.println("Runnable is running");
};
lam.run();
}
}