Good day.
There is a main () method, within which the run () method is called:
public static void main(String args[]) { EventQueue.invokeLater(new Runnable() { @Override public void run() { new WorkTable().setVisible(true); } }); }
NetBeans suggested replacing an anonymous class with a lambda expression:
public static void main(String args[]) { EventQueue.invokeLater(() -> { new WorkTable().setVisible(true); }); }
Since the run () method is the only one in the Runnable interface, we are talking about its implementation. But how, in this case, use a lambda expression if the interface has several methods (for example, List)?
Thank you.