Example

Do something with all elements of a Vector:

 

Vector V = new Vector;
 :
 :
put stuff in V
 :  V.addElement(  )
 :
while( e.hasMoreElements() )
  {
    :
    :
  do something with e.nextElement()
    :
    :
  }

 

To Next Slide To Previous Slide To Contents