title: why LinkedList doesn't have initialCapacity in java?
body: <p>I wonder why <code>LinkedList</code> doesn't have <code>initialCapacity</code>.</p>
  
  <p>I know good when to use <code>ArrayList</code> and when <code>LinkedList</code>.</p>
  
  <p>Its good practice to define  Collection final size like:</p>
  
  <pre><code>List&lt;String&gt; arraylist = new ArrayList&lt;String&gt;(5);
  </code></pre>
  
  <p>For <code>LinkedList</code> for example:</p>
  
  <pre><code>List&lt;String&gt; linkedlist = new LinkedList&lt;String&gt;(); // right way
  </code></pre>
  
  <p>but</p>
  
  <pre><code>List&lt;String&gt; arraylist = new LinkedList&lt;String&gt;(5); // compilation error
  </code></pre>
  
  <p>Can somebody spread a light on that issue?</p>
  
  <p><strong>[EDIT]</strong></p>
  
  <p>BTW, I can write </p>
  
  <pre><code>List&lt;String&gt; arraylist = new ArrayList&lt;String&gt;(5);
  List&lt;String&gt; linkedlist = new LinkedList&lt;String&gt;(arraylist);
  </code></pre>