title: Is there a way to seperate or tokenize sentences from an arraylist and put it in a new arraylist for each senteces?
body: <p>So for my assignment, given was 3 different sentences.</p>
  <p>For example;</p>
  <ol>
  <li>&quot;The car is white&quot;</li>
  <li>&quot;The cat is black&quot;</li>
  <li>&quot;The sky is blue&quot;</li>
  </ol>
  <p>These sentences are in an arrayList, named sList</p>
  <p>and the question asked to seperate or tokenize each word using delimiter white blank/space and store each work into a new arrayList called wordList.</p>
  <p>for the seperating each word, i figured that out by using</p>
  <pre><code>for(int i = 0; i &lt; sList.size(); i++){
          String sentence = sList.get(i);
          String str[] = sentence.split(&quot; &quot;);
      }
  </code></pre>
  <p>but im having problem to store each word into a new arrayList</p>