Hi Folks,
This is my first day in Lambda world.
And I cannot understand why this code works:
new JButton().addActionListener(e -> {System.err.println("Hello from lambda");});
And this doesn't:
new Thread(r -> {System.err.println("Hello from lambda");}).start();
What is the difference???
Thanks!
Omar
This is my first day in Lambda world.
And I cannot understand why this code works:
new JButton().addActionListener(e -> {System.err.println("Hello from lambda");});
And this doesn't:
new Thread(r -> {System.err.println("Hello from lambda");}).start();
What is the difference???
Thanks!
Omar