Home Segments Index Top Previous Next

401: Mainline

An ordered collection is a collection of objects into which objects generally are added at the front or back, are retrieved from the front or back, or are removed from the front or back. Each object in an ordered collection is called an element of that ordered collection, just as each object in an array is called an element of that array.

The following, for example, is a diagram of an ordered collection that contains integer elements:

*------*------*------*------* 
|  570 |  720 |  640 |  720 | 
*------*------*------*------*