File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Don't get me started about those stupid light bulbs.
 
subject: toString()...
 
Similar Threads
java problem
please answer my query?
How is Vector's hasnext() & next() called implicitly ??
What is a final Vector?
about element of vector