集合架构有Collection、Map
List与Set继承于Collection
ArrayList:
ArrayList和LinkedList的大致区别如下:
ArrayList:底层采用数组Array,适合查询
LinkedList:底层采用双向链表,适合增删
HashSet与TreeSet
HashSet:
集合架构有Collection、Map
List与Set继承于Collection
ArrayList:
ArrayList和LinkedList的大致区别如下:
ArrayList:底层采用数组Array,适合查询
LinkedList:底层采用双向链表,适合增删
HashSet与TreeSet
HashSet: