package android.view;

import java.util.ArrayList;

public class Menu {

	public ArrayList<MenuItem> menuItems = new ArrayList<MenuItem>();

	public void add(int groupId, int itemId, int order, String title) {
		MenuItem item = new MenuItem();
		item.setGroupId(groupId);
		item.setItemId(itemId);
		item.setOrder(order);
		item.setTitle(title);
		menuItems.add(item);
	}

}

@@ -146,12 +146,16 @@
 lic 
-void
+MenuItem
  add
@@ -366,14 +366,35 @@
 (item);%0A
+        return item;%0A
 %09%7D%0A%0A%7D%0A

Add must return a menuitem