title: Instantiating an array of Generic Class
body: <p>How can I instantiate an <code>array</code> of object of a <em>Generic Class</em>?</p>
  
  <p>I was implementing a <em>Hash Table</em> in <code>Java</code>.</p>
  
  <p>The <em>Generic Class</em> to be instantiated:</p>
  
  <pre><code>class GenericLinkedList&lt;T&gt; {
     // Generic Class Codes Here
  }
  </code></pre>
  
  <p>Hash Table Class:</p>
  
  <pre><code>public class HashTable {
  
      private GenericLinkedList[] table;     // Generic Class Instantiation
      private static final int SIZE = 50;
  
      public HashTable() {
          this.table = new GenericLinkedList[SIZE];
          for(int i = 0; i &lt; SIZE; i++)
              this.table[i] = new GenericLinkedList();
      }
  }
  </code></pre>