Help with linked list
Hi, I have a file that has a database of customers in it. Each customer has 5 attributes and i need to read them into an object and put them into a linked list. I cant seem to find a good example of a linked list code anywhere. Could someone please give me some code that will get me moving.
Your question is too easy...all what you need is to create a new class and put in it 4 variables that you wanna add to the linked list...
then, make a constructor to initialize them to the proper values..
and from the test class:
as you arranged them in your class constructor...
YourObjectName ob = new YourObjectName(var1, var2, var3, var4)
them simply use your linked list reference to add your object..
and so on...
sorry I can't post any code here
hope I could up help you enough,