Everything you ever wanted to know and should know about Java Runtime.exec().
Everything you ever wanted to know and should know about Java Runtime.exec().
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().