I know that some language such as python can do this:
maps = []
cur = 1
maps.append(function)
for func in self.maps:
cur = func(cur)
It adds a function to list and can iteratively call it. I'm wondering if Java can do the similar thing, if yes, how can it be done?