lundi 9 mars 2015

How to use the object from a Linked List



I am using a linked list for an assignment, and I am confused about something. We have to create another class for a phonebook, that takes in the name and number, and then store it in a linkedlist, and I got most of it figured out. Until I started to try and get the person object out of the linked list so I can run the methods I wrote for the my person object, like the getters and setters and such. But when I pull it back out of the linked list, it is just an object and not a person I put in, How do you get the object back out so that I can use it as the object I put in. Thanks




Aucun commentaire:

Enregistrer un commentaire