If you just want to split by new line, it is as simple as :
yourstring.split("\n"):
More Related Contents:
- Java: Find word in string and edit words after the word
- How to convert CharSequence to Date? [closed]
- Java string to date conversion
- Reverse a string in Java
- Extract digits from a string in Java
- How to generate a random alpha-numeric string
- How to extract numbers from a string and get an array of ints?
- Why does println(array) have strange output? (“[Ljava.lang.String;@3e25a5”) [duplicate]
- Is there a method for String conversion to Title Case?
- How to determine if a String has non-alphanumeric characters?
- How to compress a String in Java?
- will two strings with same content be stored in the same memory location?
- Sprintf equivalent in Java
- Create a mutable java.lang.String
- Use of the String(String) constructor in Java [duplicate]
- Java String.split() sometimes giving blank strings
- How to convert a String to CharSequence?
- How to add text to an image in java?
- Is Java’s assertEquals method reliable?
- How to get address of a Java Object? [duplicate]
- How to convert String object to Boolean Object?
- Sort a single String in Java
- A method to reverse effect of java String.split()? [duplicate]
- Java string intern and literal
- Java split String performances
- Find all words with 3 letters with regex
- What is the most efficient way to convert an int to a String?
- Remove all occurrences of \ from string
- How to convert hex string to float in Java?
- Java: Checking equality of arrays (order doesn’t matter)