title: JTable Calculator
body: <p>I want this function to work. This function is called by the game loop to get the selected rows in the table. I dont understand why the error message of:
  Multiple markers at this line
      - Type mismatch: cannot convert from int to int[]
      - Syntax error on token "[", Expression expected after this 
       token</p>
  
  <p>Wondering if anyone could explain what it is that I need to change to make my function getRows work. Thanks for your time and hope to hear back soon. </p>
  
  <pre><code>    public int[] getRows(JTable table) {    
      rows[0] = table.getSelectedRow();
      rowCount = table.getSelectedRowCount() - 1;
      rows[1] = rows[0] + rowCount;
      return rows[];
  }
  </code></pre>