title: Java, How to split elements of a list?
body: <p>I'm trying to split the individual elements of a <code>String[]</code> array. The array looks like </p>
  
  <pre><code>{"0 1 0 1", "0 0 1 1", "1 1 0 1",...}. 
  </code></pre>
  
  <p>I want to split each element by the regex " ", a single space. If I do that, does it make the one element "0 1 0 1" into 4 elements "0", "1", "0", and "1"? Here is my code that adds the elements to the list (reading from a text file with rows of 4 digit numbers separated by spaces) but the part using the "split" method is not working. It is not having any affect on the array produced. The name of the <code>String[]</code> array is "splitted".</p>
  
  <pre><code>    int j=0;
      String thisLine = null;
  
          while(((thisLine=readThrough.readLine()) != null) &amp;&amp; j&lt;3){
               splitted[j]= thisLine;
               splitted[j].split(" ");
               j++;
          }
  </code></pre>