title: Java lists strange size malfunction
body: <p>I initialize a list, like this:</p>
  
  <pre><code>public List&lt;Edge&gt; edges = new ArrayList&lt;Edge&gt;(8);
  </code></pre>
  
  <p>After that, I would like to get its size, but following code gives zero.</p>
  
  <pre><code>System.out.println("SIZE: " + edges.size());
  </code></pre>
  
  <p>There isn't any value change or method call beetwen two lines.
  What can causes this? </p>