posted 7 years ago
The method I have right now is sorting the list but doing it backwards. I want it to print alphabetically. I've tried changing parts of the code but I end up just making it unable to compile.
Current code:
Current output:
The members of the list are:
Amy
Bobby
Charlie
Danielle
Edward
Reversed linked list:
Edward
Danielle
Charlie
Bobby
Amy
Sorted linked list:
Edward
Danielle
Charlie
Bobby
Amy