title: Java array index is n/2
body: <p>I have a code that shows the Strassen Matrix Multiplication and I want to show its step by step process. The size and elements of the matrix are user-input. I have a problem with regards to showing the element at index (n/2). What should the indexes be when I show it? Thanks for the help!</p>
  <p>Here's a part of my code:</p>
  <pre><code>else {
      int[][] A11 = new int[n / 2][n / 2];
      int[][] A12 = new int[n / 2][n / 2];
      int[][] A21 = new int[n / 2][n / 2];
      int[][] A22 = new int[n / 2][n / 2];
      int[][] B11 = new int[n / 2][n / 2];
      int[][] B12 = new int[n / 2][n / 2];
      int[][] B21 = new int[n / 2][n / 2];
      int[][] B22 = new int[n / 2][n / 2];
     
      split(a, A11, 0, 0);
      split(a, A12, 0, n / 2);
      split(a, A21, n / 2, 0);
      split(a, A22, n / 2, n / 2);
    
      split(b, B11, 0, 0);
      split(b, B12, 0, n / 2);
      split(b, B21, n / 2, 0);
      split(b, B22, n / 2, n / 2);
      
      System.out.println();
      System.out.println(&quot;Step by Step Operation&quot;);
      System.out.println();
      System.out.println(&quot;p1 = (&quot; + A11[0][0] + &quot; + &quot; + A22 + &quot;)(&quot; + B11[0][0] + &quot; + &quot; + B22 + &quot;)&quot;);
      System.out.println(&quot;p2 = (&quot; + A21 + &quot; + &quot; + A22 + &quot;)&quot; + B11[0][0]);
      System.out.println(&quot;p3 = &quot; + A11[0][0] + &quot;(&quot; + B12 + &quot; - &quot; + B22 + &quot;)&quot;);
      System.out.println(&quot;p4 = &quot; + A22 + &quot;(&quot; + B21 + &quot; - &quot; + B11[0][0] + &quot;)&quot;);
      System.out.println(&quot;p5 = (&quot; + A11[0][0] + &quot; + &quot; + A12 + &quot;)&quot; + B22);
      System.out.println(&quot;p6 = (&quot; + A21 + &quot; - &quot; + A11[0][0] + &quot;)(&quot; + B11[0][0] + &quot; + &quot; + B12 + &quot;)&quot;);
      System.out.println(&quot;p7 = (&quot; + A12 + &quot; - &quot; + A22 + &quot;)(&quot; + B21 + &quot; + &quot; + B22] + &quot;)&quot;);
  </code></pre>