add a menu to my application with android
<p>I created a file  option_menu.xml:  in the directory /res/menu/</p>

<p>I created a file menu.java that contains this code: </p>

<pre><code>  @Override
public boolean onCreateOptionsMenu(Menu menu) {
     MenuInflater inflater = getMenuInflater();
     inflater.inflate(R.menu.option_menu, menu);
     return true;
}
</code></pre>

<p>where I can put this code for my menu works?(In menu.java?</p>

<pre><code>@Override
public boolean onOptionsItemSelected(MenuItem item) {
    switch (item.getItemId()) {
        case R.id.nelp:
            help();
            return true;
        case R.id.quit:
           quit();

        default:
            return super.onOptionsItemSelected(item);
    }
}
</code></pre>

<p>My application contains 4 java files  </p>

<p>I Hope the menu to be accessible at any Activity.</p>

<p>Thank you in advance</p>
