title: Local variable not updated in loop
body: <p>I created an Object Array und then initialized the Array within a loop.
  But when I call a method with the Object Array, it tells me, the variable has not been initialized. What did I do wrong and how can I get it right? </p>
  
  <pre><code>Objects[] = object;
  for (int i = 0; i &lt; someMap.size(); i++) {
      object = new Object[someMap.size()];      
      for (Entry e : someMap.entrySet) {
          object[i] = new Object(var1, var2, var3);
      }   
  }
  somemethod(somevar, object); //Eclipse tells me: The local variable object may not have been initialized
  </code></pre>