What methods does your linked list have that could be used for swapping?
As arguments to the swap method: swap(node1, node2);
As args: swap(5,4);
If the findNodeAtIndexN method returns...
Type: Posts; User: Norm
What methods does your linked list have that could be used for swapping?
As arguments to the swap method: swap(node1, node2);
As args: swap(5,4);
If the findNodeAtIndexN method returns...
Is the linked list class your code or the one from the Java SE? That would determine what methods are available to do the swap.
You ask the questions.
How to swap elements in the list based...