It's not a secret anymore!
The moose likes Cattle Drive and the fly likes printing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "printing" Watch "printing" New topic



Joined: Jul 05, 2001
Posts: 18
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

Joined: Jul 22, 2000
Posts: 9059
Use System.out.println()

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Peter Gragert
Ranch Hand

Joined: Jan 16, 2001
Posts: 424
If really neaded for this or another reason use 'substring' to cut out parts of a too long string and 'print(ln)' each part ?
I agree. Here's the link:
subject: printing
jQuery in Action, 3rd edition