|
hi everyone,,,
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:
YourObjectName ob = new YourObjectName(var1, var2, var3, var4) as you arranged them in your class constructor...
them simply use your linked list reference to add your object..
for example:
list.append(ob);
list.preppend(ob);
and so on...
sorry I can't post any code here
hope I could up help you enough,
good luck
|