title: Please can you explain the process to the result
body: <pre><code>public class Main {
  
      public static void main(String[] args) {
  
          int[][] tab = new int[3][3];
          int s1 = 0;
          int s2 = 0;
  
          tab[0][0]=8;
          tab[0][1]=5;
          tab[0][2]=7;
          tab[1][0]=9;
          tab[1][1]=3;
          tab[1][2]=2;
          tab[2][0]=4;
          tab[2][1]=6;
          tab[2][2]=1;
  
          for (int i = 0; i &lt; tab.length; i++){
              s1 += tab[i][2];
              s2 += tab[2][i];
          }
          System.out.println(s1 + " " + s2);
      }
  }
  </code></pre>
  
  <p>Anyone can explain why the result is <code>10 11</code>?</p>
  
  <p>How the code is going on through this 2D array?</p>