title: How to add numbers inside 2D arrays
body: <p>So I want to add the rows and columns in this 2D array right here.
  The array looks like this:</p>
  
  <pre><code>int[][] array = new int[3][3];
      array[0][0] = 0;
      array[1][0] = 0;
      array[2][0] = 0;
      array[1][0] = 0;
      array[1][1] = 1;
      array[1][2] = 2;
      array[2][0] = 0;
      array[2][1] = 2;
      array[2][2] = 4;
  </code></pre>
  
  <p>So I have this set up in a 3x3 matrix on a sheet of paper and the first row should print out 0, second row should print out 3, third row should print out 6
  first column should print out 0, second column should print out 3, third column should print out 6. 
  I have no clue where to start and I just need to see how to do this problem, because I have a few questions after this that involve this, so if you can just give me code that I can read it would be really helpful! Thanks!</p>