// Java applet that adds the even numbers 0 .. 100 to a vector and outputs them
// Cameron Gregory - cameron@local.com
// http://www.bloke.com/
import java.lang.*;
import java.util.*;
 
class myv {
        public static void main(String args[])
        {
          Vector v = new Vector(51);
          int i;
            for (i=0;i<=100;i+=2)
              v.addElement(new Integer(i));
            i=0;
            for (Enumeration e = v.elements(); e.hasMoreElements();i++)
              System.out.println(i+": "+e.nextElement());
	// OR:
/*
	for (i=0;i<v.size();i++)
              System.out.println(i+": "+v.elementAt(i));
*/
        }
}

