A great variety of collection types exist, and these types are good at different things. Your classes need a way to store the data that they work with, and different storage formats have different advantages and disadvantages. Some are ordered and some unordered, some offer faster retrieval while others offer precise location mechanisms. Others enforce capacity limits, and some do not.
There are too many collections to cover them exhaustively here, and that isn't really necessary for working with them successfully. In subsequent sections, we will examine different concrete implementations of the collections that you can use to store data. We will list the primary characteristics of the collection type and then see an example.
Top |