mohitzadeh
October 25th, 2010, 01:39 AM
Hi. I have coded a doubly-linked list. There are still 2 more methods that i don't know how to write their codes. I would really appreciate it any one help me with that. here are the methods:
void reverse()-- this methods reverses the list and it should do it "in place" by changing the pointers.
boolean addEnd(int newPosition, T newEntry)-- this method is just like add, except the position will be taken from the end of the list end, so that newPosotion 1 would mean that the new entry will be added at the end of the list and so forth.
Thanks.
void reverse()-- this methods reverses the list and it should do it "in place" by changing the pointers.
boolean addEnd(int newPosition, T newEntry)-- this method is just like add, except the position will be taken from the end of the list end, so that newPosotion 1 would mean that the new entry will be added at the end of the list and so forth.
Thanks.