Le code à la fin produit une erreur de compilation: NotApplicable.java:7: run() in cannot be applied to (int)
run(42);
^
1 error
La question est pourquoi? Pourquoi javac pense que j'
Cette question fait suite à: Why can’t I call a method outside of an anonymous class of the same name Cette réponse précédente question pourquoi, mais maintenant je veux savoir si javac devrait trouve