title: is it possible to run two for loops simultaneously?
body: <p>I was trying to get a differnce of the diagonal elements of a 2d square matrix   </p>
  
  <pre><code>static int diagonalDifference(int[][] arr) {
      int left=0,right=0;
      for(int i=0;i&lt;n;i++){
          for(int j=0;j&lt;n;j++){
              if(i==j){
                  left=left+arr[i][j];
              }
          }
      }
      for(int i=0,int j=n;i&lt;n;i++,j--){
          right=right+arr[i][j];
      }
  
  
  }
  </code></pre>