I know this is an old post, but I honestly can't believe nobody mentioned that LinkedList
implements Deque
. Just look at the methods in Deque
(and Queue
); if you want a fair comparison, try running LinkedList
against ArrayDeque
and do a feature-for-feature comparison.
↧
Answer by Ajax for When to use LinkedList over ArrayList in Java?
↧