Java Collections and Arrays

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.