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:

Below is the code for that i built,but unfortunately i am getting Exception
java.lang.ArrayIndexOutOfBoundsException: 4
String[][] netswtich=new String[12][2];
for(int i =0;i<4;i++)
{
for(int j=4;j>0;j--)
{
if(i==j)
{
continue;
}
netswtich[k][0]=ranArray[i];
netswtich[k][1]=ranArray[j];
k++;
}
}