1.LinkedList

https://www.cnblogs.com/jbclown/p/16024181.html
https://blog.csdn.net/qq_45058331/article/details/123112600
在这里插入图片描述

LinkedList&lt;Integer&gt; list = new LinkedList<&gt;();

2.Queue

https://www.runoob.com/java/data-queue.html
在这里插入图片描述

Queue<Integer&gt; queue = new LinkedList<&gt;();

3.Deque

https://www.cnblogs.com/dw3306/p/17361898.html
在这里插入图片描述

Deque<Integer&gt; deque = new LinkedList<>();

4.Stack

https://blog.csdn.net/qq_45058331/article/details/123112600
在这里插入图片描述

Stack<Integer> stack = new Stack<>();

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注