JLS wrote: The target reference of an instance method (§184.108.40.206) may be provided by the method reference expression using an ExpressionName, a Primary, or super, or it may be provided later when the method is invoked. ... Evaluation of a method reference expression produces an instance of a functional interface type (§9.8).
is equivalent to
i'm not convinced that's what's happening though. I've been going through the JLS section on Method Reference Expressions https://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.13 to see which rules apply here but haven't been able to find anything yet. This is a good question.
2) strReverse is an instance method of MyStringOps, so we prepend a parameter: (MyStringOps, String) -> String.
You can in some languages; the following would work in Forth and allow you to show that 2 and 2 make 5:-
Stephan van Hulst wrote:. . . : "Is there a way to write 5 so that it's 3?" . . . .
A wop bop a lu bob a womp bam boom. Tutti frutti ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Appshttps://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous