public class Array<E> {
private E[] data;
public Array(int size){
data = (E[])new Object[size]; //也许是jdk的历史遗留问题,java不允许创建泛型数组
}