I need help with the Linked list
Can you explain how you want to use the LinkedList class?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
Can you explain what your problem is using a linked list?
What does the "//Need help over here" comment mean?
How do you want to use the linked list at that point in the program?
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
I want to link the dates to the names
I don't think you understand what the word "Linked" in linked list means.
It refers to the connection between the elements in a list. They are linked together.
The elements in the list are objects of the same type.
Your usage of link seems to be the normal "linking" that a reference from one object to another object.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656
a way that I can print the name and date they played.
A couple of ways.
Add some get methods to the class that you can call to get the name and date
Or add a override to the toString method and have it return a String with the data you want to print.
NormR1
Posting Expert
6,677 posts since Jun 2010
Reputation Points: 1,138
Solved Threads: 656