A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Jun 14, 2002
May 16, 2005 08:33:00
I have the following code
Vector v = new Vector();
double b = new double;
How do I get back the array from the vector? I can't seem to cast it to double. Help appreciated. Thanks!
Joined: Mar 08, 2004
May 16, 2005 08:50:00
Vector v = new Vector(); double b = new double; b=0.11; b=2.3; v.add(b); double  newDoublearr = (double ) v.get(0);
This must work.
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Using java.util.Vector
Converting an array to a Vector -> Simple question with many doubts
problem about vector
ArrayList vs Vector Size and Capacity difference ?
Declare and use interface
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014