异常:java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.Integer;
当在泛型类中构造泛型数组时,若使用下面的构造方法,则会抛出异常:java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.Integer;例: public LinearList() { arr = (T[])(new Object[this.maxSize]); size ...