ArrayDeque is an object which implements an array-based double-ended queue data structure.
ArrayDeque has the following properties:
- It is a generalization of a stack and a queue
- Inserting and removing items from the front or back is possible in constant worst-case time
References