aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes toString()... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "toString()... " Watch "toString()... " New topic
Author

toString()...

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
could anyone please help me out in printing out the vector elements.
I have a Vector, of which each element in the vector holds an array of strings. How to print in the following format
v(1) = [s(1),s(2)....]
.
.
.
v(n) = [s[1]........]
Let say for eg:-
Vector v = new Vector();
v.addElement(string[]);
Thanks,
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
Originally posted by VV:
could anyone please help me out in printing out the vector elements.
I have a Vector, of which each element in the vector holds an array of strings. How to print in the following format
v(1) = [s(1),s(2)....]
.
.
.
v(n) = [s[1]........]
Let say for eg:-
Vector v = new Vector();
v.addElement(string[]);
Thanks,

Here is a quick method you could use usinf for loops.

[This message has been edited by Carl Trusiak (edited July 13, 2000).]


I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
 
wood burning stoves
 
subject: toString()...