title: Using .split(","); to split .csv data into an array whilst in a for loop?
body: <p>This is a problem I am currently having. Here is my code:</p>
  
  <pre><code>String[] sArray = new String[maxEntries*2];
  
  for (int i = 0; i != (maxEntries*2); i++)
  {
      sArray[i] = lines[i].split(",");
  } 
  </code></pre>
  
  <p>And lines[] is an array that has already read the data from the .csv file
  The previous code WOULD work if I replaced 'i' with 0, for example, but I need to split the data for the entire lines[] array.
  However, I get the following error message repeatedly:</p>
  
  <pre><code>error: incompatible types: String[] cannot be converted to String
              sArray[i] = lines[i].split(",");
                                        ^
  </code></pre>
  
  <p>any help would be much appreciated!</p>