title: Java parse error
body: <p>I'm learning Java and I'm working on class constructors. When I go to compile the code for the example I get an error: <em>Your code did not compile: /TestGame.java:35: reached end of file while parsing     }</em></p>
  
  <p>Here is my code: </p>
  
  <pre><code>public class Game {
      int homeScore;
      int visitorScore;
  
      //add your default constructor here
  
      public Game() {
          this.homeScore = 0;
          this.visitorScore = 0;
      }
  
      public boolean isHomeWinner() {
          return homeScore &gt; visitorScore;
      }
  
      public boolean isVisitorWinner() {
          return homeScore &lt; visitorScore;
      }
  
      public boolean isTie() {
          return homeScore == visitorScore;
      }
  }
  </code></pre>
  
  <p>I researched online and saw that this is usually created by not having a closing brace or a quote, but everything looks closed to me. </p>
  
  <p>What else can cause this error?</p>