title: Method for returning even numbers
body: <p>This method will not compile, can't see why. Error is:</p>
  
  <blockquote>
    <p>Can't find symbol-variable i</p>
  </blockquote>
  
  <p>The <code>int i</code> is defined in the for-loop. The method should return the even numbers between <code>int a</code> and <code>int b</code>. </p>
  
  <p>The code:</p>
  
  <pre><code>public int partall(int a, int b){
      int partall;
      int største; 
      int minste;
      if(a == b){
          partall = 0;
      }else{
          if(a&gt;b) {
          største = a;
          minste = b; 
          }else if(a&lt;b){
              minste = a;
              største = b;
  
              for(int i = minste;  i&lt;= største; i++){
                  if(i % 2 == 0) {
                       partall = i;
                  }
              }
  
          }
  
      }
      return i;
  }
  </code></pre>