if (items [length-1] != null) { result = result + items [length-1].getNameText (); }
result = result + items [length-1].getNameText ();
String getNameText () {	String result = "";	MenuItem [] items = getItems ();	int length = items.length;	if (length > 0) {		for (int i=0; i<length-1; i++) {			if (items [i] != null) {				result = result + items [i].getNameText() + ", ";			}		}		if (items [length-1] != null) {			result = result + items [length-1].getNameText ();		}	}	return result;}