|
![]() |
![]() |
![]() |
![]() |
The collection classes in java.util support various ways for you to store and manage objects of any kind in memory. They include a professional implementation of a linked list that we took so much trouble to develop for ourselves back in Chapter 6. If you want an array that automatically expands to accommodate however many objects you throw into it, or you need to be able to store and retrieve an object based on what it is, rather than using an index or a sequence number, then look no further. You get all this and more in the collection classes.
We'll be exploring the following capabilities provided by the package:
We'll start by looking in general terms at various possible types of collections for objects.
![]() |
![]() |
![]() |