通过反射执行某类的方法
LotteryManager lm=new LotteryManager();Method method=LotteryManager.class.getMethod(methodName,String.class);method.invoke(lm,"Jhone");
?
?
?
?
发布时间: 2013-08-23 15:57:36 作者: rapoo
通过反射执行某类的方法
LotteryManager lm=new LotteryManager();Method method=LotteryManager.class.getMethod(methodName,String.class);method.invoke(lm,"Jhone");
?
?
?
?