title: Declare an array of WeakReferences?
body: <p>I know how to declare an individual <code>WeakReference</code>, but what about an array of them?</p>
  
  <pre><code>    WeakReference&lt;String&gt; testWR;
      testWR = new WeakReference&lt;String&gt;("Hello");
  
      String[] exStrArr;
      exStrArr = new String[5];
  
      WeakReference&lt;String&gt;[] testWR2;
      //not working
      testWR2 = new WeakReference&lt;String&gt;[5];
      testWR2 = new WeakReference&lt;String&gt;(new String())[5];
      testWR2 = new WeakReference&lt;String&gt;()[5];
  </code></pre>
  
  <p>Could someone please tell me the proper syntax here? I'd sure appreciate it =)</p>