Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

toString()...  RSS feed

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!