Convert ArrayList<ArrayList<E>> to E[][] in Java
<p><br />
Can you please advice how to convert ArrayList of ArrayLists to simple 2d array in Java in the best way? E.g. I have</p>

<pre><code>ArrayList&lt;ArrayList&lt;String&gt;&gt; data = ...;
</code></pre>

<p>and want to obrain:</p>

<pre><code>String[][] converted = ?;
</code></pre>

<p>Thanks a lot!</p>
