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.
I agree. Here's the link:
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Using java.util.Vector
Declare and use interface
Converting an array to a Vector -> Simple question with many doubts
problem about vector
ArrayList vs Vector Size and Capacity difference ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013