Hello,
I'm having troubles using Vectors. Basically, I am being forced to use Vectors as a way of storing a list of doubles.

i want to be able to do the following:

Code:
Vector myVector = new Vector();
double mydouble = 0.5;
myVector.add(mydouble);
But apparently this won't work because Vectors store Object, and ?doubles are not objects?

So I do this:
Code:
myVector.add(new Double(mydouble))
But if I do this, how do I later retrieve the double's from the Vector?

I want to say:
Code:
newdouble = myVector(0);//assuming that mydouble was stored at index 0
But that doesn't work

Please help!
Alex