Nonsense opening
To meet project requirements, you need to systematically Understand Java Collections. Therefore, you can easily record and serve others.
Java Collections
The Java Collections framework consists of four parts: interfaces, implementations, aggregate operations, and algorithms. Subsequent articles will also introduce these four parts separately.
Java Collections Definition
For more information about Chinese Baidu, see here. The official definition is provided here:
ACollections frameworkIs a uniied architecture for representing and manipulating collections. All collections frameworks contain the following:
- Interfaces:These are abstract data types that represent collections. Interfaces allow collections to be manipulated independently of the details of their representation. In object-oriented versions, interfaces generally form a hierarchy.
- Implementations:These are the concrete implementations of the collection interfaces. In essence, they are reusable data structures.
- Algorithms:These are the methods that perform useful computations, such as searching and sorting, on objects that implement collection interfaces. The algorithms are said to bePolymorphic: That is, the same method can be used on your different implementations of the appropriate collection interface. In essence, algorithms are reusable functionality.
End with nonsense
Many articles have said that the Java Collections Framework is so good. In fact, I think there are two advantages: one is to reduce the number of times these coders hit the keyboard; second, people in the future can understand the code written by our predecessors.