title: ListNode<String> array
body: <p>I'm trying to create an array of <code>ListNode&lt;String&gt;</code> in Java. 
  I get this error: "cannot create a generic array of <code>ListNode&lt;String&gt; []</code> when I try to create the array as such: </p>
  
  <pre><code>ListNode&lt;String&gt; [] array = new ListNode&lt;String&gt; [4];
  </code></pre>
  
  <p>But when I create it like this: </p>
  
  <pre><code>ListNode&lt;String&gt; [] array;
  </code></pre>
  
  <p>I get an error further down when I try to set spots in the array. For example:</p>
  
  <pre><code>array[0]=start;
  array[1]=start2;
  </code></pre>
  
  <p>Gives me the error "The local variable array may not have been initialized." </p>
  
  <p>How do I fix this? Sorry if this is a basic question! I am in high school.</p>