error: method does not override or implement a method from a supertype OnCreateOptionsMenu

error: method does not override or implement a method from a supertype OnCreateOptionsMenu

@Override
public boolean OnCreateOptionsMenu(Menu menu) {
    getMenuInflater().inflate(R.menu.menu, menu);
    return true;
}

@Override
public boolean OnOptionsItemSelected(MenuItem item) {
    switch (item.getItemId()){

        case R.id.logout:
            FirebaseAuth.getInstance().signOut();
            startActivity(new Intent(MainActivity.this, StartActivity.class));
            finish();
            return true;
    }

我在 Android Studio 上构建时收到一条错误消息:错误:方法没有覆盖或实现来自超类型的方法 我需要帮助

这些方法都是小写的'o'

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


@Override 
public boolean onOptionsItemSelected(MenuItem item) {
 switch (item.getItemId()){ 
case R.id.logout:
 FirebaseAuth.getInstance().signOut();
 startActivity(new Intent(MainActivity.this, StartActivity.class)); finish(); return true; }