1: 2: 3: 4: 5: 6:
class MenuRegister { ArrayList menuIndex = neues ArrayList (); Öffentlichkeit leeres createMenu (Schnurname) { menuIndex.add (neues Menü (Name)); } }