@@ -0,0 +1,1092 @@
+package linked_list;%0A%0Aimport datastructures.lists.CustomLinkedList;%0Aimport datastructures.lists.LinkedListNode;%0A%0Apublic class PairwiseSwapLinkedList %7B%0A  private CustomLinkedList%3CInteger%3E linkedList = null;%0A%0A  public void constructLinkedList(String input) %7B%0A    linkedList = new CustomLinkedList%3CInteger%3E();%0A    String%5B%5D elements = input.split(%22 %22);%0A%0A    for (String e : elements) %7B%0A      if (e != null && !e.trim().isEmpty()) %7B%0A        linkedList.add(Integer.parseInt(e.toString()));%0A      %7D%0A    %7D%0A  %7D%0A%0A  public CustomLinkedList%3CInteger%3E pairwiseSwap() %7B%0A    LinkedListNode%3CInteger%3E current = linkedList.head();%0A    LinkedListNode%3CInteger%3E runner = current.next;%0A    LinkedListNode%3CInteger%3E prev = null;%0A%0A    while (runner != null) %7B%0A      current.next = runner.next;%0A      if (prev != null) %7B%0A        prev.next = runner;%0A      %7D%0A      runner.next = current;%0A      if (current.equals(linkedList.head())) %7B%0A        linkedList.head(runner);%0A      %7D%0A%0A      prev = current;%0A      current = current.next;%0A      runner = (current != null) ? current.next : null;%0A    %7D%0A%0A    return linkedList;%0A  %7D%0A%7D%0A

Add PairwiseSwap LInkedList solution