Arrays and Collections
Arrays are of fixed size and lack methods to manipulate them
Vector is the most widely used class to hold a collection of other objects
More powerful than arrays, but less efficient
Iterators are used to access members of Vectors
Enumerations were formally used, but were more complex
v = new Vector();
Iterator i = v.iterator();
while(i.hasNext())
{
aMethod(v.next());
}
Previous slide
Next slide
Back to first slide
View graphic version