Generics: suggest correct syntax
<ol>
<li><p><code>List&lt;String&gt;[] stringList = new List&lt;?&gt;[10];</code>
gives <code>Type mismatch: cannot convert from List&lt;?&gt;[] to List&lt;String&gt;[]</code></p></li>
<li><p>If i use following statement
<code>List&lt;? extends Number&gt; inLi = new ArrayList&lt;Integer&gt;();</code>
then <code>inLi. inLi.add(5);</code> gives <code>The method add(int, capture#1-of ? extends Number) in the type List&lt;capture#1-of ? extends Number&gt; is not applicable for the arguments (int)</code></p></li>
</ol>
