work1:ArrayList和LinkedList的区别

集合架构有Collection、Map  

List与Set继承于Collection

ArrayList:

ArrayList和LinkedList的大致区别如下:

ArrayList:底层采用数组Array,适合查询

LinkedList:底层采用双向链表,适合增删

HashSet与TreeSet

HashSet:

猜你喜欢

转载自blog.csdn.net/qq_43532342/article/details/84847869
今日推荐