title: How to fill an array of strings
body: <pre><code>String[] array; 
  int i = 0; 
  for(Element link : listOfLinks) { 
      array[i++] = link.text(); 
  } 
  </code></pre>
  
  <p>This is the code i'm trying to fill my array.</p>
  
  <p>The error is that in the line:
  <code>array[i++] = link.text();</code>
  the word 'array' is highlighted and there is written: "<code>The local variable array may not have been initialized</code>"</p>