If i have a method which takes a int[]
as a parameter and i wish to call method.invoke
on this then do i need to do the following
Object[] anArray = {100, 200, 300, 400, 500, 600, 700, 800, 900, 1000};
method.invoke(obj, anArray);
Is it as simple as that as i seem to be getting errors?
Regards
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…