title: Error: cannot find symbol- variable. Refering to ".length"
body: <p>Im trying to make every "<em>ADJEKTIVER</em>" strings in the <em>storyList</em> array into random strings from my <em>adjectivesList</em> array. When I'm trying to compile, I only get the error: <em>cannot find symbol- variable</em>. With .<em>length</em> as the variable/attribute. Been searching for a solution quite a while now</p>
  
  <pre><code>    ArrayList&lt;String&gt; storyList = new ArrayList&lt;String&gt;();
      storyList = reader.getWordsInFile(storyFilename);
  
      ArrayList&lt;String&gt; adjectivesList = new ArrayList&lt;String&gt;();
      adjectivesList = reader.getWordsInFile(adjectivesFilename);
  
      for (int index =0; index &lt; storyList.length; index++)
      {
          storyList[index] = storyList[index].replace("ADJEKTIV", adjectivesList[random.nextInt(adjectivesList)]);
      }
  
      writer.write(adjectivesList, outputFilename);
  </code></pre>