Splitting a String by newline is a common requirement. When processing textual data from files or from web we need to split the data by newline boundaries. The solution aren’t hard either. Let’s see a simple one liner solution using String.split(). String[] poList = pos.split("\r\n|\r|\n"); What did I do? I am splitting the String based on a regular [...]
Splitting a String by newline is a common requirement. When processing textual data from files or from web we need to split the data by newline boundaries. The solution aren’t hard either. Let’s see a simple one liner solution using String.split().
String[] poList = pos.split("\r\n|\r|\n"); What did I do? I am splitting the String based on a regular [...]
Please fill in the following fields
* - Required
Your Name: *
Your E-Mail: *
Your Remarks:
Friend's Name: *
Friend's E-Mail: *