Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

How to break up a String into multiple array Strings?

843806Oct 17 2008 — edited Oct 21 2008
How do I break up a string into a bunch of String arrays after the line ends.

For example,

JTextArea area = new JTextArea();

this is a string that i have entered in the area declared above
now here is another sting that is in the same string/text area
this is all being placed in one text field

Sting input = area.getText();

now how do I break that up into an array of strings after each line ends?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 18 2008
Added on Oct 17 2008
7 comments
127 views