Hashtable: it is rarely used and has been replaced by HashMap. The only note is that the Properties class is its subclass.
HashMap: The thread is unsafe and fast. It allows storing Null keys, Null values, and unordered storage. It is recommended that you use
TreeMap: sorts keys. The sorting principle is the same as that of TreeSet.
Properties class:
The main function is to operate properties as a configuration file. All properties in the property file are saved in the form of "key = value" and the saved content is String.
Common Methods:
SetProperty () setting property, getProperty (String key) Get property content, load () load Property
Collections class: tool class of the operation set
Reverse (List list) reverses the order in the specified List set
Shuffle (List list) sorts the elements of a set randomly.
Sort (List list) sort in ascending order
Swap () Switching
BinarySearch () binary search
Arrays class:
List asList (Object... a) returns a fixed-size List supported by the specified array.