Java Programming Ideas

Source: Internet
Author: User

The 11th chapter holds the object

11.1 Generic and type safe containers can be inserted in the Eg:list<string> container the generic class subclass can be placed in
11.2 Basic Concepts
(1) Collection. A sequence of independent elements that obey one or more rules. List must save elements in the order in which they are inserted, and set cannot have duplicate elements
Queue determines the order in which objects are produced by queuing rules
(2) Map. A "key-value pair" object that consists of pairs
11.3 Adding a set of elements
11.4 Printing of containers
ArrayList and LinkedList are list types that save elements in the order in which they are inserted; the ArrayList advantage is random access; The advantage of LinkedList is the insertion and removal of elements
HashSet is inserted according to the hash algorithm; TreeSet saves the object in ascending order of comparison; Linkedhashset saves the object in the sequence that is added
11.5 List

11.6 iterators

11.6.1 Listiterator is a more powerful sub-type of iterator, it can only be used for various list types of access; iterator can only move forward, listiterator
Bidirectional movement.
11.7 LinkedList
11.8 Stack
11.9 set can use set type to eliminate duplicate elements
11.10 Map
11.11 Queue
11.11.1 Priorityqueue
11.12 Collection and iterator
11.13 foreach and iterator
11.13.1 Adapter Method Customary method

12th Chapter

Java Programming Ideas

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.