title: What's wrong with my syntax?
body: <p>Eclipse is giving me many errors for one specific line of code says:</p>
  
  <p>Multiple markers at this line</p>
  
  <pre><code>- Syntax error, insert ")" to complete 
   ConstructorDeclaration
  - Syntax error, insert "}" to complete ClassBody
  - Syntax error, insert ";" to complete 
   ConstructorDeclaration
  - Syntax error, insert ";" to complete Statement
  - Syntax error, insert ")" to complete 
   MethodInvocation
  </code></pre>
  
  <p>The line is:</p>
  
  <pre><code>setOnClickListener(new View.OnClickListener(); {
  </code></pre>
  
  <p>and on a different line i get errors </p>
  
  <p>Multiple markers at this line</p>
  
  <pre><code>- Syntax error on token ")", delete 
   this token
  - Syntax error on token "(", ; expected
  </code></pre>
  
  <p>for line: public void onClick(View v); {</p>
  
  <p>Heres activity2.java:</p>
  
  <pre><code>package android.app;
  import android.app.R;
  import android.app.Activity;
  import android.content.Intent;
  import android.os.Bundle;
  import android.view.View;
  import android.widget.Button;
  
  
  
  public class activity2 extends Activity{
  
      /** Called when the activity is first created. */
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main2);
  
          Button next = (Button) findViewById(R.id.Back);
          next.setOnClickListener(new View.OnClickListener() {
              public void onClick(View view) {
                  Intent intent = new Intent();
                  setResult(RESULT_OK, intent);
                  finish();
              }
              Button sound = (Button) findViewById(R.id.sound);
              setOnClickListener(new View.OnClickListener(); {
                  @Override
                  public void onClick(View v); {
                      MediaPlayer mp = MediaPlayer.create(TestSonido.this, R.raw.whippingsound);  
                      mp.start();
                  }
              }
              ;
  
      ;
  }}
  </code></pre>