Answer the question
In order to leave comments, you need to log in
How to pass a method in Java?
Standard wrappers from java.util.function.* do not interest me.
The question is how to pass a method through interfaces.
How to pass a method like this?
I know for sure that it is possible, I saw the code somewhere.
Answer the question
In order to leave comments, you need to log in
What is fn? In the code you provided, this name is not defined anywhere. Also, Test takes two parameters, and you pass one. I suspect that you wantedTest(Main::Func, 475)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question