Ulrika Tingle wrote:
Christophe Verré wrote:
Why don't you just do this?
Looks like he wants to call only the methods whose name is stored in a map.
You never know until they tell you.
I have tried to generalise the actual code here that I am working on.
Will try to post a working code. But please consider this.
totalApplicableMethods gets its value from some predefined condition.
Here in the loop lets say I am calling method1(), method3(). So only they are invoked.
> I want 1=a and 3=c to be in my new HashMap hashTest1.
The loop is working correct. But I am getting hashTest1 empty {} in the end.>