title: Converting a String with Breaks to an Arraylist
body: <p>If I have the following string:</p>
  
  <pre><code>String string = "My \n name \n is \n John \n Doe";
  </code></pre>
  
  <p>And I want to separate each word and add it to an arraylist:</p>
  
  <pre><code>ArrayList&lt;String&gt; sentence = new ArrayList&lt;String&gt;();
  </code></pre>
  
  <p>How would I do that?</p>
  
  <p>Bare in mind that the line break may not be \n - it could be anything.</p>
  
  <p>Thanks</p>