This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring 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