code: public static JMenuItem addMenuItem (
          ActionListener l, JMenu menu, String name, int mnem, KeyStroke accel)
      {
          return addMenuItem(l, menu, name, Integer.valueOf(mnem), accel);
      }
docs: Adds a new menu item to the menu with the specified name and
  attributes.
  
  @param l the action listener.
  @param menu the menu to add the item to.
  @param name the item name.
  @param mnem the mnemonic key for the item.
  @param accel the keystroke for the item or null if none.
  
  @return the new menu item.