title: 'variable' cannot be resolved to a variable
body: <p>I'm working with Eclipse and I get this error:</p>
  
  <blockquote>
    <p>seats cannot be resolved to a variable</p>
  </blockquote>
  
  <p>This is my program:</p>
  
  <pre><code>import java.util.*;
  
  class Project {
  
      public static void printRow(char[] row) {
          for (char i : row) {
              System.out.print(i);
              System.out.print("\t");
          }
          System.out.println();
      }
  
      public static void method1 (char[][]seats){
          seats = new char [15][4];
          int i,j;
          char k = 'O';
          for(i=0;i&lt;15;i++) {
              for(j=0;j&lt;4;j++) {
                  seats[i][j]=k;
              }
          }
  
          for(char[] row : seats) {
              printRow(row);
          }
  </code></pre>
  
  <p>And this is the main:</p>
  
  <pre><code>public static void main (String[]arg) {
      method1(seats);
  }
  </code></pre>
  
  <p>I omitted the irrelevant code, Eclipse mark <code>method1(seats)</code> with an error, but I dont know how to fix it.</p>
  
  <p>EDIT: I use a parameter for <code>seats</code> because I need to use in other methods.</p>