C++ (Qt)auto func = [](auto x) { return x*x; }auto r1 = func(2);auto r2 = func(4);
public class HelloWorldSwing { private static void createAndShowGUI() { BLABLABLABLABLA } public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { createAndShowGUI(); } }); }}