title: Can I name an array with a variable in java?
body: <p>for example I want to do this:</p>
  
  <pre><code>String[] arraynames = new String[2];
  arraynames[0] = "fruits";
  arraynames[1] = "cars";
  </code></pre>
  
  <p>and now I don't know how to do this</p>
  
  <pre><code>String[] arraynames[0] = new String[100]; // ??????
  </code></pre>
  
  <p>so that I create a String array called fruits with 100 cells...
  I know this doesn't work but is there someway to do this?</p>