Deque:
“double ended queue(双端队列)”的缩写,通常读为“deck”;
Deque是一个线性集合,支持在两端插入和移除元素。
Deque有三种用途:
双端队列(两端都可进出)
Deque< Integer> deque =new LinkedList<>();
普通队列(一端进另一端出):
Queue< Integer> queue = new LinkedList();
Deque< Integer> deque =new LinkedList<>();
堆栈
Deque< Integer> deque =new LinkedList<>();
Stack < Integer> stack = new Stack< Integer>();
参考
https://blog.csdn.net/qq_42398447/article/details/125957910
https://blog.csdn.net/devnn/article/details/82716447
https://www.likecs.com/show-203674798.html