title: Java compiler asking for semicolon
body: <p>I've looked through this code for awhile, counted brackets, all that stuff. And I can't find an error. I'm using Eclipse, developing for Android, and it's asking for a semicolon (commented, it's near the bottom). </p>
  
  <pre><code>package com.example.lesson1;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.text.InputType;
  import android.view.View;
  import android.widget.Button;
  import android.widget.EditText;
  import android.widget.TextView;
  import android.widget.ToggleButton;
  
  public class TextPlay extends Activity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.text);
  
          final Button checkCommand = (Button) findViewById(R.id.bResults);
          final ToggleButton passToggle = (ToggleButton) findViewById(R.id.tbPassword);
          final EditText input = (EditText) findViewById(R.id.etCommands);
          final TextView display = (TextView) findViewById(R.id.tvResults);
  
          passToggle.setOnClickListener(new View.OnClickListener() {
  
              public void onClick(View v) {
                  if (passToggle.isChecked()) {
                      input.setInputType(InputType.TYPE_CLASS_TEXT
                              | InputType.TYPE_TEXT_VARIATION_PASSWORD);
                  } else {
                      input.setInputType(InputType.TYPE_CLASS_TEXT);
                  }
  
              }
          });
          checkCommand.setOnClickListener(new View.OnClickListener() {
  
              public void onClick(View v) {
                  String check = input.getText().toString();
                  if (check.toLowerCase().equals("boss")) {
                      display.setText("Yup, pretty damn boss!");
                  } else if (check.toLowerCase().equals("password")) {
                      display.setText("Simple");
                  }
              }
          }); // here is the semicolon it wants
      }
  
  }
  </code></pre>
  
  <p>Screenshot: <a href="https://dl.dropbox.com/u/986549/error.png" rel="nofollow">https://dl.dropbox.com/u/986549/error.png</a></p>