title: Shuffle two arrays with same length into one using JAVA
body: <p>I am trying to combine two arrays with the same length and return an single array with the previous arrays shuffled, but I am not able to return it. What I have tried is the following:</p>
  <pre><code>public class PerfectShuffle {
      public static int[]interleave (int[]a1,int[]a2) {
          int[] arrayBla1 = {1, 2, 3};
          int[] arrayBla2 = {4, 5, 6};
          for (int i = 0, j = 0; i &lt; 6 &amp;&amp; j &lt; 3; i++, j++) {
              a2[i] = arrayBla1[j];
              i++;
              a2[i] = arrayBla2[j];
          }
          for (int n : a2);
          return a1;
      }
      public static void main (String[]args){
                  int[] a1={1, 2, 3};
                  int[] a2={4, 5, 6};
              System.out.println(interleave(a1,a2));
      }
  }
  </code></pre>