swap receives two index positions as parameters and swaps the two nodes (the nodes, not just the values inside) at these positions, provided both…

Add methods to the existing class

Modify author’s “MyLinkedList” class to add the following methods.

Perform checking of the parameters and throw exceptions where appropriate.  

Link code: http://users.cis.fiu.edu/~weiss/dsaajava3/code/MyLinkedList.java

Thanks for installing the Bottom of every post plugin by Corey Salzano. Contact me if you need custom WordPress plugins or website design.

"Is this question part of your assignment? We Can Help!"

Essay Writing Service