Circular ArrayList (extending ArrayList)
问题 So my program has a need of a type of circular ArrayList. Only circular thing about it has to be the get(int index) method, this is the original: /** * Returns the element at the specified position in this list. * * @param index index of the element to return * @return the element at the specified position in this list * @throws IndexOutOfBoundsException {@inheritDoc} */ public E get(int index) { rangeCheck(index); return elementData(index); } If index is -1 it should get the element with