Supposes I have some methods like this:
method1()
method2()
method3()
method4()
method5()
But I don't want to call sequence methods:
obj.method1()
obj.method2()
obj.method3()
obj.method4()
obj.method5()
It's boring. And if I add a new method: method6(), I need add manual: obj.method6()
It's better if I can call them using a loop in Java. Anybody can give me some suggestions?
Thank!
.
objto call the method sequence? (I assume those are the real method names.)