JSP-14-common collection classes and interfaces, jsp-14-set Interfaces
List Interface
The List interface and implementation class are variable-capacity lists. They can access elements in a set by index and are ordered sets.
Arraylist is an array-based List that allows fast and random access. It is equivalent to the fact List that is not suitable for element insertion and removal.
The sequence list provides optimal sequential access and is suitable for inserting and removing elements.
Set Interface
The Set interface is a Collection that does not contain duplicate elements. That is to say, a Set can have at most one null element.
HashSet can quickly locate an element, but it requires that the object stored in HashSet must implement the HashCode () method.
TreeSet stores the elements in it in sequence.
Map Interface
Map is a container that associates a key object with a value object. Like Set, key objects in a map container cannot be repeated.
The HashMap class is the implementation class of the Map interface. It implements a key-to-value ing hash table and obtains value objects through keys.
The Properties class generally stores attribute files in the form of key-value pairs after they are read into the stream to facilitate programmers to read the data.