Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    8
    Views
    1,805

    Re: New to Java: Arry of Objects

    Is this what you are asking about:
    MML[indexOfNextEmptySlot] = MM; // insert/add object MM to the array MML
    indexOfNextEmptySlot++; // move index to next slot
  2. Replies
    8
    Views
    1,805

    Re: New to Java: Arry of Objects

    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...
  3. Replies
    8
    Views
    1,805

    Re: New to Java: Arry of Objects

    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...
  4. Replies
    8
    Views
    1,805

    Re: New to Java: Arry of Objects

    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...
Results 1 to 4 of 4