标签:data jdk private public vat 数组 object new size
public class Array<E> {
private E[] data;
public Array(int size){
data = (E[])new Object[size]; //也许是jdk的历史遗留问题,java不允许创建泛型数组
}
}
标签:data jdk private public vat 数组 object new size
原文地址:https://www.cnblogs.com/jinsheng1027/p/11785270.html