title: Assign a value to an array in Java?
body: <p>I'm currently working on a text editor. I have an entire GUI working, and now I'm trying to add usability to it.</p>
  
  <p>For some reason, when I try to create an array called symbols, NetBeans is fine with it -- when I try to assign a value to the array, NetBeans won't compile my program, and will instead give an error and suggest it make a new class for the array.</p>
  
  <p>Example code: </p>
  
  <pre><code>String[] symbols = new String[42]; symbols[0] = "∑"; // Error line!
  </code></pre>
  
  <p>Here's an image: <a href="http://img401.imageshack.us/img401/4844/examplegx.png" rel="nofollow">http://img401.imageshack.us/img401/4844/examplegx.png</a></p>
  
  <p>Does anyone know the solution to fix this or has this happened to you? If I need to provide more detail, let me know.</p>