public static void main(String args[]){
        LinkList ll = new LinkList();
        Node head = null;
        head = ll.addNode(1, head);
        head = ll.addNode(2, head);
        head = ll.addNode(3, head);
        head = ll.addNode(4, head);
        head = ll.addNode(5, head);
        head = ll.addNode(6, head);
        ReverseAlternateNodeAndAppendAtEnd ran = new ReverseAlternateNodeAndAppendAtEnd();
        ran.act(head);
        ll.printList(head);
    }
http://www.geeksforgeeks.org/given-linked-list-reverse-alternate-nodes-append-end/
Test case
Even and odd number of nodes
src/com/interview/linklist/ReverseAlternateNodeAndAppendAtEnd.java