Title: Collection interface
Course: CPS 189: Java Certification - Review, Practice & Prepare (Development) > Section: (OLDstyle) Learning Modules

Collection interface

A collection is a group of objects or elements.

The Collection interface contains methods for:

- Adding, removing, and searching for elements.
- Iterating through elements.
- Determining the collection size.
- Converting a collection to an array.

Other interfaces that implement the Collection interface include:

- List
- Set
- Map

A collection may be traversed using:

- An aggregate operation
- A for-each statement
- An iterator

For more information, see:

- The Collection Interface
- Level 1 Study Materials: Unit 2
- Level 1 Study Materials: Unit 10