What I would like to do is send a function as parameter to other class' function. For example, I have UI.java class for UI and Timer.java class for the logic. So I would like to pass function of logic class to UI so that once a button is clicked, it will call function from Timer.java.
How can I do that? Is it recommended? standard for application development?