title: I am getting a curly brace error but I do not understand why
body: <p>I am getting the error java:35: error: illegal character: \29, all this should do is when a user clicks on the label it changes from "H" to "T"</p>
  
  <p>I am also getting error: ';' expected
          }</p>
  
  <p>and  error: reached end of file while parsing
          }</p>
  
  <pre><code>import javax.swing.*;
  import java.awt.*;
  import java.awt.event.*;
  
  
  class Lab3Label extends JLabel{
  
      Lab3Label () {
          this.addActionListener(new FlipTheCoinListener());
      }
  
  
  
      public void FlipTheCoin(){
          int count = 0;
          if(count % 1 == 0 ){
              this.setText("H");
              count += 2;
          }
          else{
              this.setText("T");
              count -= 2;
          }
      }
  
  
  }
  
          class FlipTheCoinListener implements ActionListener{
  
  
              public void actionPerformed(ActionEvent e){
               this.FlipTheCoin();
              }
      }
  </code></pre>
  
  <p>^ is the line in question</p>