title: Iterating one dimension array as two dimension array
body: <p>I have,</p>
  
  <pre><code>int[10] oneDim = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, index = 0;
  </code></pre>
  
  <p>as shown <a href="https://stackoverflow.com/questions/664927/how-to-convert-a-unidimensional-array-to-a-bidimensional-array-java">here</a>, we create the the two dimensional one from the origin. But how do I iterate my <code>oneDim</code> inside <code>for (index = 0; index &lt; 10; index++)</code> so that I could get my <strong>column index</strong> and <strong>row index</strong> <em>there</em> <strong>without</strong> creating a new one? 
  I want it looks like this while printing its indexes to a two dimensional array <strong>(2x5)</strong>:</p>
  
  <pre><code>0,0
  0,1
  1,0
  1,1
  2,0
  2,1
  3,0
  3,1
  4,0
  4,1
  </code></pre>
  
  <p>I think the main issue here is getting the <strong>column index</strong> and <strong>row index</strong> without creating the two dimensional one. Don't you?</p>