Question: i am getting an error in adding a menu item to a menu.
i am not able to execute the menu program. i am getting an error at menu.add(menuitem); it says add method is undefined for type menu. but as far as i know that is only way to add a menu item to a menu. can anyone help me..!!!!