Please help, I want to make the button visible only if the checkbox is checked. But the token "else" gives me a syntax error. What do you think it could be? For a while I thought it could be some bracket but I don't really know.

```
package com.example.holaamigos;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.CompoundButton;
import android.widget.CompoundButton.OnCheckedChangeListener;
import android.widget.EditText;
import android.widget.Toast;

public class MainActivity extends Activity {
    public final static String EXTRA_SALUDO = "com.example.holaamigos.SALUDO";

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);

    final EditText txtNombre = (EditText)findViewById(R.id.TxtNombre);
    final Button btnHola = (Button)findViewById(R.id.BtnHola);
    final CheckBox checkbox1 =(CheckBox)findViewById(R.id.checkBox1);
        checkbox1.setOnCheckedChangeListener(new OnCheckedChangeListener(){

            @Override
            public void onCheckedChanged(CompoundButton arg0,
                    boolean checked) {
                if (checked)

                    Toast.makeText(checkbox1.getContext(), "Activo", Toast.LENGTH_LONG).show();
                    btnHola.setVisibility(0);
                    btnHola.setOnClickListener(new OnClickListener() {

                        @Override
                        public void onClick(View v) {
                            Intent intent = new Intent(MainActivity.this, ActivitySaludo.class);
                            String saludo = txtNombre.getText().toString();
                            intent.putExtra(EXTRA_SALUDO, saludo);
                            startActivity(intent);

                else 

                    Toast.makeText(checkbox1.getContext(), "Inactivo", Toast.LENGTH_SHORT).show();
            }
            });
}

});

}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.main, menu);
    return true;
}

}

```