title: Mirroring 2D Arrays
body: <p>Hi I'm trying to make a code that takes a 2d array and mirrors it like so,</p>
  
  <pre><code>input:        and get the output like so:  
    123                                      321
    456                                      654
    789                                      987
  </code></pre>
  
  <p>I have this portion of the code:</p>
  
  <pre><code>public static void mirror(Object[][] theArray) {
      for(int i = 0; i &lt; (theArray.length/2); i++) {
          Object[] temp = theArray[i];
          theArray[i] = theArray[theArray.length - i - 1];
          theArray[theArray.length - i - 1] = temp;
      }
  }
  }
  </code></pre>
  
  <p>My program works however it's returning the opposite which is this</p>
  
  <pre><code>input:        and get the output like so:  
    123                                      789
    456                                      456
    789                                      123
  </code></pre>
  
  <p>What am I doing wrong..?</p>