title: Array of Linked Lists Java
body: <p>I am trying to create an <code>array of linked lists</code>
  The program I am trying to write has a string array of names, however some names are in the same position of the array.
  For example if the name <code>morgan</code> is in <code>array[0]</code> and <code>john</code> is also in <code>array[0]</code> how can I create a linked list that allows both of the names to be stored in the same index. I am trying to replicate <code>separate chaining</code> collision resolution.</p>
  
  <p>Is it possible to use <code>LinkedList&lt;String&gt; inkedlist = new LinkedList();</code></p>
  
  <p>If I use that how can I create a new linked list for each array index?</p>
  
  <pre><code>for(int i = 0; i &lt; array.length; i++){
              array[i] = new LinkedList();
          }
  </code></pre>