public static void main(String args[]){
        LinkList ll = new LinkList();
        Node head = null;
        head = ll.addNode(1, head);
        head = ll.addNode(8, head);
        head = ll.addNode(-3, head);
        head = ll.addNode(14, head);
        
        Node head1 = null;
        head1 = ll.addNode(-1, head1);
        head1 = ll.addNode(22, head1);
        head1 = ll.addNode(31, head1);
        head1 = ll.addNode(11, head1);
        
        Node head2 = null;
        head2 = ll.addNode(5, head2);
        head2 = ll.addNode(7, head2);
        head2 = ll.addNode(3, head2);
        head2 = ll.addNode(1, head2);
        
        TripletToSumInLinkList tts  = new TripletToSumInLinkList();
        tts.printTriplet(head, head1, head2, 20);
    }
http://www.geeksforgeeks.org/find-a-triplet-from-three-linked-lists-with-sum-equal-to-a-given-number/
Test case
empty list
list with 0 1 or more nodes
negative sum
0 sum
positive sum
src/com/interview/linklist/TripletToSumInLinkList.java