T
toton
Hi,
Java ArrayDeque is an Deque implementation over an array. However if
the array is gull it expands it, otherwise wraps the head and tail.
That is what I want.
However as it is an implementation over an array, I expect an random
access like E get(index i) method. But such method is not present. Why?
It is present in ArrayList or any other random access container! Though
it gives an delete(index i) method, which causes it to shift some of
the elements!
can anyone give a little insight?
Thanks
abir
Java ArrayDeque is an Deque implementation over an array. However if
the array is gull it expands it, otherwise wraps the head and tail.
That is what I want.
However as it is an implementation over an array, I expect an random
access like E get(index i) method. But such method is not present. Why?
It is present in ArrayList or any other random access container! Though
it gives an delete(index i) method, which causes it to shift some of
the elements!
can anyone give a little insight?
Thanks
abir