I would like to reference Methods in Java. But isn't there a nicer way to do this? One that is closer to the syntax we already know. For example:
Method anIstanceOfMethod = someObject#someMethod();
anIstanceOfMethod.execute();
Generics could then be used to specify the return and parameter types of the method. |