绕过泛型,通过反射把 String 添加到 List<Integer> 中
public class ArrayListDemo { public static void main(String[] args) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException {
List<Integer> list = new ArrayList<>();
原创
2016-09-06 15:31:20 ·
1958 阅读 ·
0 评论