method.invoke(null, new String[]{"111","222","333",});
}
复制代码
为什么method.invoke(null, new String[]{"111","222","333",});处会有异常Exception in thread "main" java.lang.IllegalArgumentException: wrong number of arguments,
而把它换成method.invoke(null, (Object)new String[]{"111","222","333",}); 或者 method.invoke(null, new Object[]{new String[]{"111","222","333"}}); 就好了 求解