List<Integer> list = new ArrayList<Integer>(); Method method = ArrayList.class.getMethod("add",Object.class); method.invoke(list, "abc"); System.err.println(list.get(0));//源代码片段来自云代码http://yuncode.net