Newbie confused about brackets
<p>I'm writing my first app, I'm new to programming...this program is a work in progress, but  I'd like to see how it looks so far, if I could only get it to compile! I have a problem with the brackets I think, every time I fix one error, another appears somewhere else...is there an easy way to spot missing brackets? Thanks!</p>

<pre><code>package com.Jenko.votingapp;

import android.os.Bundle;
import android.app.Activity;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import android.content.Intent;

public class MainActivity extends Activity {

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

        Button createNew = (Button)findViewById(R.id.newPoll);
        createNew.setOnClickListener(new View.OnClickListener() {
            public void onClick (View view) {
                startActivityForResult(new Intent("com.Jenko.votingapp.CREATENEWPOLL"), 1);
                finish();
            }

            public void onActivityResult(int requestCode, int resultCode, Intent data) {
              if (requestCode ==1) {
                  if (resultCode == RESULT_OK) {
                      //something will eventually happen here...
                  }

                  Button seePrevious = (Button)findViewById(R.id.prevPoll);
                  seePrevious.setOnClickListener(new View.OnClickListener() {
                      public void onClick (View view) {
                          startActivityForResult(new Intent("com.Jenko.votingapp.SEEPREVIOUSPOLL"), 2);
                          finish();
                      }
                  });
              }
</code></pre>
