With Java 8 you can use a lambda.
With Processing, you can use an anonymous class that implements a functional interface. Something like this:
interface DoFunction{
void do();
}
void hello(DoFunction function){
function.do();
}
void setup(){
hello(new DoFunction(){
void do(){
println("here");
}
});
}
3
solved Java/Processing is that possible ? void hello(void funktion) [closed]