Java create an ArrayList of Functions

后端 未结 0 1216
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-24 19:27

I want to create a list of functions that I can iterate over and run in sequence.

For a dummy example, in Python I can do something like this:

def fn1():
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题