java基础知识点总结

1、Stack
由于stack在当初设计时候有缺陷,所以现在不建议使用stack,如果要使用栈这种数据结构,建议使用LinkedList,LinkedList能够直接实现栈的所有功能和方法,所以建议使用LinkedList.

2、Queue
队列是一种先进先出的容器,LinkedList实现了queue接口,所以可以通过向下转型来通LinkedList构造queue

Queue queue= new LinkedList();
这里写图片描述

3、map
这里写图片描述

猜你喜欢

转载自blog.csdn.net/hefenglian/article/details/80569201