arraylist of a three-dimensional integer vector
<p>I have this three-dimensional array named bands. I need to do 4 copies of it, so I can work in parallel with all of them.</p>

<pre><code>int bands[][][] = new int[param][][];
</code></pre>

<p>I need the array to keep being a three dimensional array, as it is the input for some methods that needs an <code>int [][][]</code></p>

<p>How could I do such copies? I was thinking about using an arrayList like this:</p>

<pre><code>List&lt;Integer[][][]&gt; bandsList = new ArrayList&lt;Integer[][][]&gt;();

bandsList.add(bands);
</code></pre>

<p>but I get this error on the last line: The method <code>add(Integer[][][])</code> in the type <code>List&lt;Integer[][][]&gt;</code> is not applicable for the arguments <code>(int[][][])</code></p>

<p>so what should I do??</p>
