An bag stores a collection of elements.
An bag stores a collection of elements. It supports indexed access to the elements (via the [] operator), addition of new elements, and removal of elements. The element type must support the assignment and equality operators.New elements are appended to the end of the bag. When an element is removed, the last element of the bag fills the vacant slot, thereby avoiding holes in the indexing.
Alphabetic index HTML hierarchy of classes or Java