title: Syntax error on token ";", , expected Java Programming
body: <p>I have this error while coding in Eclipse for android:</p>
  
  <p>Syntax error on token ";", , expected</p>
  
  <p>and</p>
  
  <p>Multiple markers at this line</p>
  
  <pre><code>- Syntax error on token ")", { expected after this token
  - Return type for the method is missing
  - Syntax error on token ".", ... expected
  - Syntax error, insert ";" to complete FieldDeclaration
  </code></pre>
  
  <p>And I don't really see why I'm having so much trouble figuring what it is. Eclipse only says where there is an error, not why, and its "Quick fixes" never work.
  Does anyone know how to fix this, please?</p>
  
  <pre><code> package com.example.apptest;
  
  import android.app.Activity;
  import android.os.Bundle;
  import android.view.Menu;
  import android.widget.Button;
  import android.widget.CheckBox;
  import android.widget.EditText;
  import android.widget.RadioGroup;
  import android.widget.TextView;
  import android.widget.Toast;
  
  public class MainActivity extends Activity {
    private final String defaut = "Vous devez cliquer sur le bouton « Calculer l'IMC » pour obtenir un résultat.";
    private final String megaString = "Vous faites un poids parfait ! Wahou ! Trop fort ! On dirait Brad Pitt (si vous êtes un homme)/Angelina Jolie (si vous êtes une femme)/Willy (si vous êtes un orque) !";
  
    Button envoyer = null;
    Button raz = null;
    EditText poids = null;
    EditText taille = null;
  
    RadioGroup group = null;
  
    TextView result = null;
  
    CheckBox mega = null; /*Error here with the semicolon, eclipse wants a ','*/
  
  
  
      envoyer= (Button) findViewById(R.id.calcul); /*Long error here*/
  
      raz = (Button) findViewById(R.id.raz);
  
      taille = (EditText)findViewById(R.id.taille);
      poids = (EditText)findViewById(R.id.poids);
  
      mega = (CheckBox)findViewById(R.id.mega);
  
      group = (RadioGroup)findViewById(R.id.group);
  
      result = (TextView)findViewById(R.id.result);
  
      // On attribue un listener adapté aux vues qui en ont besoin
      envoyer.setOnClickListener(envoyerListener);
      raz.setOnClickListener(razListener);
      taille.addTextChangedListener(textWatcher);
      poids.addTextChangedListener(textWatcher);
  
      // Solution avec des onKey
      //taille.setOnKeyListener(modificationListener);
      //poids.setOnKeyListener(modificationListener);
      mega.setOnClickListener(checkedListener);
   }
  
  
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_main);
  }
  
  @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;
  }
  
  }
  </code></pre>