添加 ArrayList<String> a new ArrayList<String>();
a.add("CSDN_SEU_Cavin");
Class c a.getClass();
try{Method method c.getMethod("add",Object.class);method.invoke(a,100);System.out.println("lgqname:" a);
}catch(Ex…
List<?>[] lsa new List<?>[10]; // OK, array of unbounded wildcard type.
Object o lsa;
Object[] oa (Object[]) o;
List<Integer> li new ArrayList<Integer>();
li.add(new Integer(3));
oa[1] li; // Correct.
Integer i (Integer) lsa…