代码如下:
List<String>[] lsa = new List<String>[10]; // Not really allowed.
Object o = lsa;
Object[] oa = (Object[]) o;
List<Integer> li = new ArrayList<Integer>();
li.add(new Integer(3));
oa[1] = li; // Unsound, but passes run time store check
String s = lsa[1].get(0); // Run-time error: ClassCastException.
代码第二行到第三行怎么理解,单独理解第二行还能明白,但第三行那个强制转换具体怎么做到的?不太懂,求解释原理。。