public void dequeue(int index) {
        if (index > realCount || index < 0)
            throw new ArrayIndexOutOfBoundsException("索引超过数组的边界");
        for (int i = index + 1; i < realCount; i++) {
            array[i - 1] = array[i];
            array[i] = null;
        }
        realCount--;
    }