It's a count of the last element in the list i think so it's to do with the number of entries/contacts not the number of data variables in each
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
It's a count of the last element in the list i think so it's to do with the number of entries/contacts not the number of data variables in each
That's confusing. Is it a count of the number of items in the listIt's a count of the last element in the list
or is it the index of the last element in the list.
I'm not sure how to count the last element. Wouldn't that count always be one. There is one last element in the list.
its the index of the last element in the list
i may as well just leave it not gonna get this sorted i just keep going round in circles and wasting your time
Then its value starts at -1 before there are any elements in the list.
When there is only one element in the list, then the index to the last element is 0.
Is that how your code uses the top variable?
I think thats how its meant to i really havent a clue anymore
I agree. I think this assignment is past your current knowledge.i may as well just leave it not gonna get this sorted i just keep going round in circles
Try working on one with only one class and a couple of methods to see how to create objects and call their methods.
Good luck
thanks for the help anyways, looks like i'm repeating the first year again probably for the best
Find a good book on beginning programming.