public boolean add(Object o) {

        resetCapacity();

        if (endindex == list.length) {
            endindex = 0;
        }

        list[endindex] = o;

        elementCount++;
        endindex++;

        return true;
    }
public boolean add ( Object o ) { resetCapacity ( ) ; if ( endindex == list . length ) { endindex = 0 ; } list [ endindex ] = o ; elementCount ++ ; endindex ++ ; return true ; }
/*
public Object remove(int i){
return get(i);
}

public void add(int i, Object o) {

}