title: Syntax error on token "else" — how on earth?
body: <p>I'm learning Java the classic way — by playing around with Karel.</p>
  
  <p>But I seem to have encountered a simple problem I can't solve even with the help of Google.</p>
  
  <p>I'm getting an error in Eclipse saying there's a syntax error on the token "else", and that I should delete it.</p>
  
  <p>How come? The syntax in the code block above the else statement is identical.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>public void run() {
  
      putBeeper();
      if(beepersPresent()){
  
          move();
  
      } while(frontIsClear()){
          move();
          putBeeper();
      } else if(facingEast()){
  
          turnLeft();
          move();
  
      }
          }
  </code></pre>