Possible Duplicate:
How do I invoke a java method when given the method name as a string?
I have a few methods myMethod0() ... myMethodN()
, where N is a predetermined number. How can I execute all methods in sequence?
Meaning, how can I do this, without explicitly writing all those methods calls?
I guess a `for-loop would be nice? But how to do this elegantly?