title: Storing Data to two dimensional Array
body: <p>I have been working with a java, and wanted to Store the data in 2-d Array 12x2,
  Below shown is the way to Store the data:
  <img src="https://i.stack.imgur.com/uhaJE.png" alt="enter image description here"></p>
  
  <p>Below is the code for that i built,but unfortunately i am getting Exception </p>
  
  <p><strong><code>java.lang.ArrayIndexOutOfBoundsException: 4</code></strong></p>
  
  <pre><code>String[][] netswtich=new String[12][2];
  
  for(int i =0;i&lt;4;i++)
                {
                    for(int j=4;j&gt;0;j--)
                    {
                          if(i==j) 
                          {
                              continue;
                          }
                          netswtich[k][0]=ranArray[i];
                          netswtich[k][1]=ranArray[j];
                          k++;
                    }
                }
  </code></pre>