Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Split String at specific length without breaking words

800563Jan 18 2008 — edited Jan 18 2008
Hi
I have a String with 1000 characters, i need to break this into string of 50 characters, but the last word should not be broken,
for example if the first 50 characters come in middle of a whole word, then this word should be start of next sentence and so on.
Any ideas how to do it.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 15 2008
Added on Jan 18 2008
6 comments
1,971 views