Date: 07/19/07 (Java Web) Keywords: web 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 [...] Source: http://blog.taragana.com/index.php/archive/how-to-split-java-string-by-newlines/
|