public class LambdaRunnable {
public static void main(String[] args) {
Runnable
r = () -> {for(int i=0; i<10 span="">i++){System.out.println("Lenin");}}; 10>
Thread
t = new Thread(r);
t.start();
}
}
No comments:
Post a Comment