Template:Java comparison of Stack and Deque methods