The collection in Java is a very important point, to consolidate the knowledge of the study here, the knowledge of the rationale
According to the horse soldier's video, the summary is also very good, the collection is a "1136"
1 graphs, 1 classes collections,3 knowledge points: Enhanced for loop, generics, packaged and unpacked, 6 interfaces
1 graphs:
List and set are implemented collection interface, and HashSet is the implementation of the set interface, LinkedList and ArrayList implementation is the list method, HashMap is the implementation of the map interface
2.Collections:
For sorting, I may be more user-censored
3. Generics are important:
such as List l=new LinkedList, when there is no generic type is object, that any type can be used, in the use of there will be a lot of conversion, the generic is very good, in the case of the word I pass the type,eg:list<string> l= New linkedlist<string> so he can only receive String types
6 Interfaces:
is the content mentioned in Figure 1, in the use of the combination, there are some performance options, we can use the choice, but also remember that when we traverse the iterator method, he is in the collections class
The rest is the actual combat content, first of all, wait for the supplement
Summary of Java Collections