Is this what you are asking about:
MML[indexOfNextEmptySlot] = MM; // insert/add object MM to the array MML
indexOfNextEmptySlot++; // move index to next slot
Type: Posts; User: Norm
Is this what you are asking about:
MML[indexOfNextEmptySlot] = MM; // insert/add object MM to the array MML
indexOfNextEmptySlot++; // move index to next slot
It's important to get the vocabulary right and to use the correct spellings and names when describing a problem. Not many of us are mind readers. There are too many different ways to go wrong that a...
How does your posted code relate to your question?
Your posted example does not have an array: movieList or a class movie. What is the name of the object that you want to pass.
movie() appears...
You can use an assignment statement to put an object into an array. Given an array: anArray, anObject and an index: theIndex
anArray[theIndex] = anObject; // put anObject into the array at theIndex...