Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

toString()...

 
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).]
 
Won't you be my neighbor? - Fred Rogers. tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!