How would you create the equivalent of this nested javascript array in Java : <p>[[1,2,[3]],4] we can declare an array like this in Javascript, how would this array be written in Java? the following is something like what i want but does not work as 4 is not a 2d array. Is there a way to do this without lists?</p>

<pre><code>int[][] arrayNestedTest = {{1,2},{3}};
int[][][] arrayNestedTest1 = {arrayNestedTest, 4};
</code></pre>

<p>Thanks</p>
