title: Java array beginner confusion
body: <p>Basically I would like to store information about a train within arrays. I believe I would need to use a 2d array. I can't seem to get it working correctly. I want an array that will let me keep track of the number of empty and reserved seats on each car of a train. Is this going to work for me?</p>
  
  <pre><code>    int[][] seats = new int[4][10]; 
      for (int row = 0; row &lt; 4; row ++)
          for (int col = 0; col &lt; 10; col++)
              car[row][col] = 0;
  </code></pre>
  
  <p>I want for this just to initialize all the seats to 0, signifying they are empty. I currently get an error message on the semi colon after int[4][10], it says "expected , {"</p>