Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using java.util.Vector

 
Tim Berett
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have the following code

Vector v = new Vector();
double[] b = new double[2];
b[0]=0.11; b[1]=2.3;
v.add(b);

How do I get back the array from the vector? I can't seem to cast it to double[]. Help appreciated. Thanks!

Tim
 
Ragu Ram
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


This must work.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic