aspose file tools*
The moose likes Java in General and the fly likes Help please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Help please" Watch "Help please" New topic
Author

Help please

Shreya Menon
Ranch Hand

Joined: Jul 31, 2001
Posts: 285
Hi,I need help in implementing this. Any help is appreciated
I have three vectors:Vector v = new java.util.Vector();
v.addElement("first");
v.addElement("second");
v.addElement("third");
v.addElement("Test");
Vector v1 = new java.util.Vector();
v1.addElement("second1");
v1.addElement("second2");
Vector v2 = new java.util.Vector();
v2.addElement("third1");
v2.addElement("third2");
v2.addElement("third3");
Now my aim is to display the values in the vectors( The values will be dynamically coming to the vector)
like this
v1.firstelement
v2.firstelement
v3.firstelement
v1.secondelement
v2.secondelement
v3.secondelement
and so on,,
I am able to do this with 2 vectors, but stuck with 3, any help//
Thanks
Snigdha Solanki
Ranch Hand

Joined: Sep 07, 2000
Posts: 128
Not sure if I understood your problem. But check out the code below:

Output :
Display
v1 first element 1
v2 first elementI
v3 first elementi
v1 second element 2
v2 second elementII
v3 second elementii
v1 third element 3
v2 third elementIII
v3 third elementiii


Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help please
 
Similar Threads
arrayOutOfIndex
creating variables in a loop
Adding 2 vectors
About gc
Help with Objects..