File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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:
subject: Using java.util.Vector
ArrayList vs Vector Size and Capacity difference ?
problem about vector
Converting an array to a Vector -> Simple question with many doubts
Declare and use interface
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014