This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Java in General and the fly likes Array of Vectors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Array of Vectors" Watch "Array of Vectors" New topic

Array of Vectors

Rocky Summers
Ranch Hand

Joined: Nov 07, 2003
Posts: 66
hi and hello!
i'm having trouble figuring out as to how to add an element in a vector that's in an array. i was thinking of something like this:

so that each element in the array has a vector of its own....
any ideas?
and how can i grab a specific index and add a String in its vector?
hope you could help..
thank you in advance.
Uma Balu
Ranch Hand

Joined: Aug 22, 2003
Posts: 61

Will this solve your problem???
Rocky Summers
Ranch Hand

Joined: Nov 07, 2003
Posts: 66
wow thanks uma!
It is sorta covered in the JavaRanch Style Guide.
subject: Array of Vectors
It's not a secret anymore!