i am new in android .The error is showing on this line of code, please help me how to solve this error

```
@Override
public boolean onCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.activity_main, menu);
    return true;

}

```

Thank you sir!