title: How to copy a cursor of 11 columns and 7 rows in a 2d string array on Android
body: <p>I have a table of 11 columns and 7 rows of string values</p>
  
  <p>I hava a list of my textviews of size 77 elements</p>
  
  <p>I want to display my data on my textviews which are on 7 columns of 11 rows and I am rather confused I have tried:</p>
  
  <pre><code>String[][] mazeArray = new String[7][11]; 
              int nk=0;
              GetDataBack.moveToFirst();
              while (!GetDataBack.isAfterLast() &amp;&amp; nk&lt;7) {
  
                  mazeArray[nk][0] = GetDataBack.getString(GetDataBack.getColumnIndex("c_one"));
                  mazeArray[nk][1] = GetDataBack.getString(GetDataBack.getColumnIndex("c_two"));
                  mazeArray[nk][2] = GetDataBack.getString(GetDataBack.getColumnIndex("c_three"));
                  mazeArray[nk][3] = GetDataBack.getString(GetDataBack.getColumnIndex("c_four"));
                  mazeArray[nk][4] = GetDataBack.getString(GetDataBack.getColumnIndex("c_five"));
                  mazeArray[nk][5] = GetDataBack.getString(GetDataBack.getColumnIndex("c_six"));
                  mazeArray[nk][6] = GetDataBack.getString(GetDataBack.getColumnIndex("c_seven"));
                  mazeArray[nk][7] = GetDataBack.getString(GetDataBack.getColumnIndex("c_eight"));
                  mazeArray[nk][8] = GetDataBack.getString(GetDataBack.getColumnIndex("c_nine"));
                  mazeArray[nk][9] = GetDataBack.getString(GetDataBack.getColumnIndex("c_ten"));
                  mazeArray[nk][10] = GetDataBack.getString(GetDataBack.getColumnIndex("c_eleven"));
                  nk=nk+1;
                  GetDataBack.moveToNext();
              }
  
  
  for (int i = 0; i &lt; 7; i++)
  {
      for (int j = 0; j &lt; 11; j++)
      {
         finalTotalList.get(11 * i + j).setText(mazeArray[i][j]);
      }
  
  }
  </code></pre>
  
  <p>What I doing wrong?</p>