How to return an array from a list [Java]
<p>Here is how my code is set up:</p>

<pre><code>public String[] function(List&lt;String[]&gt; playerList){
i = 5
return playerList[i];
</code></pre>

<p>When I try to run this code, I get the error:</p>

<pre><code>Array type expected; found: 'java.util.List&lt;java.lang.String[]&gt;'
</code></pre>

<p>I know I'm screwing something up by mixing my arrays and lists, what would be the right way of fixing this code, assuming I can't change my list input to an array?</p>