<span style="white-space:pre"> </span>public void test6() throws Exception{
Class clazz = Class.forName("reflect.Person");
Method method = clazz.getMethod("main",String[].class);
//方法一
//method.invoke(null,new Object[]{new String[]{"1","2"}});
//方法二
method.invoke(null,(Object)new String[]{"1","2"});
}