title: "Counter" cannot be resolved to a variable error?
body: <pre><code> public class arryTable {
  
      public static void main(String[] args) {
  
          System.out.println("Index\tValue");
  
          int paco[]={1,2,3,4,5};
  
          for(int counter = 0;
                  counter &lt; paco.length;       
                  counter++);
  
          System.out.println(counter + "\t" + paco[counter]);
  
      }
  
  }
  </code></pre>
  
  <p>I get "counter cannot be resolved to a variable". Has the last "counter" underlined. Thank you</p>