title: 2D array: 1 dimension determined at run time, other known at compile time
body: <p>A method named <code>generateRandomArray(int minLength, int maxLength, int minVal, intMaxVal)</code> returns a random array of random length. I want 1 random array generated and then have it copped 5 times. I plan on doing mostly the same manipulations to the array so I want to be able to use a loop on an array of these arrays. So I want a 2D array, where 1 dimension is the length of the randomly generated array returned and the other dimension is 6. How do I do this? <code>int[][6] test = generateRandomArray(3,50,-100,100)[];</code> gives <code>] expected</code>.</p>
  
  <p>Right now I have</p>
  
  <pre><code>    int[] a1 = generateRandomArray(minLength, maxLength, minVal, maxVal);
      int[] a2 = a1.clone();
      int[] a3 = a2.clone();
      int[] a4 = a3.clone();
      int[] a5 = a4.clone();
      int[] a6 = a5.clone();
      a1.doWork();
      a2.doWork();
      a3.doWork();
      //...
      a1.callMethodX();
      a2.callMethodY();
      a3.callMethodZ();
      //...
      System.out.println(Array.toString(a1));
      System.out.println(Array.toString(a2));
      System.out.println(Array.toString(a3));
      System.out.println(Array.toString(a4));
      System.out.println(Array.toString(a5));
      System.out.println(Array.toString(a6));
  </code></pre>