Java the collection framework in
collection classes in Java: A tool class, like a container, that stores any number of objects with common attributes.
Function of the collection:
Within the class, the data is organized;
Simple and fast search for large numbers of entries;
Some collection interfaces provide a series of ordered elements, and can quickly insert or delete elements in a sequence;
Some collection interfaces provide a mapping relationship that can be used to quickly find the corresponding unique object by keyword, which can be any type.
The length of the array is fixed and the set length is variable (dynamically extended);
Arrays can only access elements through array subscripts, types are fixed, and some collections may find specific objects that are mapped by any type.
The implementation class of list {arraylist,linkedlist};
The implementation class {LinkedList} of the queue;
The implementation class of Set {HashSet};
The implementation class of map {HASHMAP};
Collection interfaces, sub-interfaces, and implementation classes
Collection interface
is the parent interface of the list, set, and queue interfaces
Defines methods that can be used to manipulate list, set, and queue--additions and deletions
1:list interface and its implementation class--arraylist
A list is a set of elements that are ordered and can be duplicated, called a sequence
The list can control exactly where each element is inserted, or delete a location element
arraylist--array sequence, which is an important implementation class of List
ArrayList the bottom layer is implemented by an array
The collection framework in Java