| Author |
Inserting break tag in a StringBuilder
|
N Naresh
Ranch Hand
Joined: Nov 04, 2008
Posts: 66
|
|
hi i want to insert a <br> in StringBuilder after certain number of characters suppose if the StringBuilder is like ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ how i can write the logic to insert <br> at more than one place in above StringBuilder content
|
 |
Joanne Neal
Rancher
Joined: Aug 05, 2005
Posts: 3011
|
|
|
You've already been given an example of how to do something like that here
|
Joanne
|
 |
Bill Shirley
Ranch Hand
Joined: Nov 08, 2007
Posts: 457
|
|
after you insert "<br/>" at location N, keep scanning the string for the need for more at index N+ (length of "<br/>") until you get to the end,
|
Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
|
 |
 |
|
|
subject: Inserting break tag in a StringBuilder
|
|
|