Today's Catalog
1. The introduction of Java collections
2. List collection
3, the traversal of the collection
4. Set collection
5. Map collection
First, the introduction of Java collections
2. List collection
1、ArrayList:
2、LinkList
3. In the case of a small amount of data, the performance of these two classes is not much different. In general, the elements in the collection rarely change, and ArrayList is generally used. If the elements in the collection change frequently, LinkedList is used; the underlying implementation different.
Third, the traversal of the collection
4. Set collection
5. Map collection
Add Xiaobian WeChat to get free resources, QR code
To use the tools, pay attention to the
official
get it directly for free :