java反射调用静态方法
Class c;
c = Class.forName("class name");
Method m = c.getMethod("method name", new Class[] {int.class, int.class, int.class,int.class});
m.invoke(c, new Object[] {1,2, 3, 4});
补充:软件开发 , Java ,
Class c;
c = Class.forName("class name");
Method m = c.getMethod("method name", new Class[] {int.class, int.class, int.class,int.class});
m.invoke(c, new Object[] {1,2, 3, 4});
补充:软件开发 , Java ,