Java Collection Class List Set Map

Source: Internet
Author: User

1.List (ordered, repeatable)

(1) The objects stored in the list are ordered and can be repeated.

(2) List is concerned with indexes, and has a series of index-related methods.

(3) When you insert or delete data into it, the data that follows is moved.

2.Set (unordered, non-repeating)

(1) Objects stored in set are unordered and not duplicated.

(2) When data is added to it, it is not sorted in a particular way.

3.Map (Key-value pair, key-unique, value not unique)

(1) A key-value pair is stored in the map

(2) The key cannot be duplicated and the value can be repeated.

Java Collection Class List Set Map

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.