标签:java
public class Test { public static void main(String[] args) { Class c; c = Class.forName("K"); try{ Method m = c.getMethod("aa", new Class[] { String.class }); m.invoke(c, new Object[] { "test" }); }catch(Exception e) { e.printStackTrace(); } } }
本文出自 “IT软件开发资料” 博客,请务必保留此出处http://3923830.blog.51cto.com/3913830/1638271
标签:java
原文地址:http://3923830.blog.51cto.com/3913830/1638271