title: Copy array into another array many times in java
body: <p>I wanted to copy array from one Integer array into another array many times.</p>
  
  <pre><code>int a[6]={1,2,3};
  int b[]=new int[12];
  for(int i=0;i&lt;12;i++)
  {
  b[i]=a[i];
  System.out.println(b[i]);
  }
  </code></pre>
  
  <p>I wanted output like this:</p>
  
  <pre><code>1,2,3,1,2,3,1,2,3,1,2,3
  </code></pre>
  
  <p>How should i copy all element from a[] to b[] for as many times i want.</p>