title: Reversing Diagonal In Matrix
body: <p>Title says it all, I developed this diagonal method that searches the Matrix 'matrix' and goes from the Center to the far right corner. I also have it another set from the center to the left. I now have the question, how would I make it reversed, not starting from the bottom but actually starting "C", go all the way to "G" and keep moving towards the Left. </p>
  
  <p>All it has to do is be reversed but I have tried and tried for about 2 hours and still to no avail. This is actually the final piece to my project I have going on and would awesome if someone could help flip.</p>
  
  <p>Here's the code, I took out a large portion to conserve space.</p>
  
  <pre><code>public class Word {
  
      public static int curCol = 10;
      public static int curRow = 10;
  
      public static String[][] matrix = {{"A","B","C"},
                                         {"D","E","F"},
                                         {"G","H","I"}};
  
      private static void searchDiagonalCenterToRight(String word) {//Center to bottom Righ    t. Diagnol Works, debug to go along column is needed
  
          int rowOn = 0;
          int colOn = 0;
  
          int resetableCol = curCol;
          resetableCol--;//Just resets everything then starts again.
  
          int decreaser = curCol;//What to decrease by everytime it runs 10,9,8,7 all the way to 1
          int resetableDec = decreaser;
          resetableDec--;
  
          char c;
  
          String toFind = word.toUpperCase();
  
          String developingInverse = "";
  
          int integer = 0;
  
          for(int row = 0; row &lt; curRow; row++)//Matrices Row
          {
              for(int i = 0; i &lt;= resetableDec; i++)
              {
  
                  String developingWord = "";
  
                  integer = i;
  
                  for(int j = integer; j &lt;= resetableDec; j++,integer++)
                  {              
                      c = matrix[j][integer+row].charAt(0);//Sets to whatever letter it is on
                      char uC = Character.toUpperCase(c);
                      developingWord = developingWord + "" +uC;
  
                      System.out.println("On Row: " + row + " Started From: " + integer + " Now On: " + j);
                      System.out.println("Processing Letter: " + matrix[j][integer] + " Adding Letter To: " + developingWord);
  
                  }
  
              }
              resetableDec--;
          }
          System.out.println("\nNo Matching Word Was Found, Center To Left.");
      }
  
  }
  </code></pre>