Java中LinkedList/Queue/Deque/Stack总结

1.LinkedList

https://www.cnblogs.com/jbclown/p/16024181.html
https://blog.csdn.net/qq_45058331/article/details/123112600
Java中LinkedList/Queue/Deque/Stack总结_第1张图片

LinkedList<Integer> list = new LinkedList<>();

2.Queue

https://www.runoob.com/java/data-queue.html
Java中LinkedList/Queue/Deque/Stack总结_第2张图片

Queue<Integer> queue = new LinkedList<>();

3.Deque

https://www.cnblogs.com/dw3306/p/17361898.html
Java中LinkedList/Queue/Deque/Stack总结_第3张图片

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

4.Stack

https://blog.csdn.net/qq_45058331/article/details/123112600
Java中LinkedList/Queue/Deque/Stack总结_第4张图片

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

你可能感兴趣的:(java,java,数据结构)