12 Replies Latest reply: Mar 30, 2008 6:03 PM by 807591 RSS

    Help with 2D arrays

    807591
      I am required to make a magic squares program using a 2D array. How would I iterate it to separately add the row, column, and diagonals? I have four separate methods for doing each
      public int sumRow(int row)
      public int sumCol(int col)
      public int sumMainDiag()
      public int sumOtherDiag()
      Edited by: sammusashi on Mar 30, 2008 3:59 PM