The Java code in the book uses @Override in two places. But the Eclipse IDE gives me an error, and will not execute until I remove the @Override. Has anybody else had this problem with the code?
Code:
public void onItemSelected(AdapterView<?> arg0,
View arg1, int arg2, long arg3)
{
int index = arg0.getSelectedItemPosition();
Toast.makeText(getBaseContext(),"You have selected item : " +
presidents[index],Toast.LENGTH_SHORT).show();
}
public void onNothingSelected(AdapterView<?> arg0) { }
});