Home Segments Top Top Previous Next

572: Mainline

Instead of using the elementAt method and a counter variable, counter, to access vector elements, as shown in Segment 570, you can create an iterator, which offers up vector elements, one element at a time.