Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

printing

 
sailsjam
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have vector.Each element in the vecor is a string.I want to print each string element in seperate line.How am I to go about doing that.
PS the size each may vary.
My problem is that when a string is long when it is printed some part of it doesnot show on the page
 
Marilyn de Queiroz
Sheriff
Posts: 9065
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use System.out.println()
 
Peter Gragert
Ranch Hand
Posts: 424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If really neaded for this or another reason use 'substring' to cut out parts of a too long string and 'print(ln)' each part ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic