Add a method in java  swapTwoNodes to SinglyLinkedList class . This method should swap two nodes node1 and node2 (and not just their contents) given references only to node1 and node2. The new method should check if node1 and node2 are the same node, etc. Write the main method to test the swapTwoNodes method in diffrent location of linklist. Hint: You may need to traverse the list.

also methos should get two element and find those nodes based on the element,and also methode is able to swap any nodes in the link list,