Having a strange error when trying to implement a spinner in android

view story

http://stackoverflow.com – I am trying to implement a spinner in android and while I was doing it I got this strange syntax error and I am unable to resolve it. The code I was writing : public class AddContact extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_add_contact); } @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it is present. getMenuInflater().inflate(R.menu.add_contact, menu); re (HowTos)