0
can I put method as parameter in java?
example public void do_five( method d ){ d(); d(); d(); d(); d(); }
3 RĂ©ponses
+ 1
I don't know if it's possible, but why would you want a method for that, you could just use a for-loop đ€·ââïž
0
I haven't seen this done before but i know you can use a method inside of a method and you an also return a method if that helps
0
one way is via reflection
https://code.sololearn.com/cybCh5BLNgeF/#java