title: Combination of elements of multiple arrays
body: <p>Recently i implemented code for below
  Suppose I have 2 arrays as -</p>
  
  <pre><code>arr1 = [a,b,c]
  
  arr2 = [d,e]
  </code></pre>
  
  <p>and should be as  </p>
  
  <pre><code>output = [ad,ae,bd,be,cd,ce]
  </code></pre>
  
  <p>Now suppose I have multiple arrays.</p>
  
  <p>for eg :</p>
  
  <pre><code>arr1=[a,b,c]
  
  arr2=[d,e]
  
  arr3=[f,g,h,i]
  
  arrN=[x,y,z,h,o]
  
  output = [adf..x,adf..y and so on]
  </code></pre>
  
  <p>How to implement this in JAVA? kindly help</p>
  
  <p>My attempt :</p>
  
  <pre><code>for(int i=0;i&lt;arr1.length();i++)
  {
  for(int j=0;i&lt;arr2.length();j++)
  {
  System.out.print(arr1[i] + arr2[j] );
  }
  }
  </code></pre>