title: Split string into list by line separator?
body: <p>For the string</p>
  
  <pre><code>String cow = "A cow jumped \n over the \n moon."
  </code></pre>
  
  <p>How can I split the string into a list?</p>
  
  <pre><code>List&lt;String&gt; test = new ArrayList&lt;String&gt;();
  Collections.addAll(test, cow).split("\n")); 
  </code></pre>
  
  <p>The code above is not working.</p>