The Java Collection class provides a set of well-designed classes and interfaces for manipulating a set of objects, the most basic of which is the following 4 interfaces
1, Collection. interface, which represents a group of objects
2, set. Inherit Collection<e>, representing a group of objects that are not duplicates
3, List. Inherit from Collection<e>, a set of objects that can be repeated in order.
4, Map. Interface, directly inherits from object, and corresponds to value by a unique key.
To facilitate manipulation of collections or arrays, the collections and Arrays classes are available in the collection tools class to manipulate collections and arrays (including lookups, sorting)
Such as
Collections.binarysearch ()
Collections.sort (list<e>)
And
Arrays.binarysearch ()
Arrays.sort (t[])
Wait a minute
Java Collections and Arrays