Re: add/get double to vector
If you are not able to use generics (version < 1.5), then you need to cast from an Object to a Double...
Code:
Double newdouble = (Double)myVector(0);//assuming that mydouble was stored at index 0
That should work.
Re: add/get double to vector
Thanks for that
I think I will try to find some other type of data structure for this though, as Vectors seem to have quite a few drawbacks.
Re: add/get double to vector
Why don't you try the ArrayList?
it's almost like the Vector but quite better in your case
Re: add/get double to vector
Yea that's what I came across as well, seems more suitable.
Thanks
Alex
Re: add/get double to vector
Quote:
Originally Posted by spandex44
Yea that's what I came across as well, seems more suitable.
Thanks
Alex
You're welcome anytime