Try this. I wrote this program to store a Double, but you can easily change it to an Integer to suit your needs. Notice the casting at the end.
Hope this helps.
import java.util.*;
public class VectorDouble
{
public static void main(
String[] args)
{
Vector v = new Vector();
Enumeration e = v.elements();
for(int i = 0; i < 10; i++)
v.addElement(new Double(i * 1.2));
while(e.hasMoreElements())
{
Double o = (Double)e.nextElement();
double i = o.doubleValue();
System.out.println((i * 2));
}
}
}