If i am running this for loop:
Method[] methods = someClass.getDeclaredMethods();
for(Method method: methods){
/*code*/
}
Is there a way for me to know at what iteration im currently on. I need to know if a certain method is found and then save the position in the array for that method.
Thanks