• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Converting String to String[] using delimiter

Hi!

I have a fairly simple question. I want to convert a String to String[], where the String should be "cut into pieces" using a delimiter like "\n" (newline).

What is the easiest wa to do that?

Regards,
Jesper
0
jespersahner
Asked:
jespersahner
1 Solution
 
hoomanvCommented:
str.split("\n");
0
 
jespersahnerAuthor Commented:
->hoomanv: Feel kind of stupid the answer being that simple :-)

Thanx for your answer!

Regards,
Jesper
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now