How do I instantiate a new matrix every iteration?
<p>I am doing a custom written javabat problem that requires me to compare set length groups of numbers. I will describe the problem in detail more if you need, but I want to know if there's a way to create a new matrix (with a new name every time; within a for loop) with the set length from the array's square rooted length (all arrays being passed in are perfect squares).</p>

<pre><code>  for (int boxes = 0; boxes &lt; matrixBox; boxes++)
  {
     String matrixName = "matrixLine" + boxes+""; 
     int []matrixName = new int[matrixBox]; // The compiler wants to make a new variable.
  }
</code></pre>

<p>I essentially need a new matrix with the names: matirixLine1, matrixLine2,...etc. so I can compare them later on to solve my problem.</p>

<p>Btw, this site is incredible.</p>
