Possible Duplicate:
Java how to: Generic Array creation
I am using tons of ArrayLists in my program that does not need most of the functionality of Java arraylist, so basicly i want to implement it myself to get better space performance.
this is what i got so far:
public class ArrayList<E> {
    private E[] a;
    private int size=0;
    public ArrayList() {
    }
    public ArrayList(int fixedSize) {
        ***a=new E[fixedSize];***
    }
}
the compiler says i cant create a generic Array, how do i over come this?
 
     
    