Hello all, I use Java reflection. I need to call getMethod(String name, Class[] parameterTypes) If the Method invoked has no parameter, How should I put into "Class[] parameterTypes" ?
Thanks Jim. So when call public Object invoke(Object obj,Object[] args) I can do Object[] arglist = new Object[0]; Right? By the way, for the return objects, they are Integer, Double, String..., I can cast all those kinds of objects to String, right? Thanks, Sarah