public static boolean areIdentical(LinkedListNode head1, 
            LinkedListNode head2)
    {
        if (head1 == null && head2 == null)
        {
            return true;
        }
        if (head1 == null && head2 != null)
        {
            return false;
        }
        if (head1 != null && head2 == null)
        {
            return false;
        }
        if (head1.getData() != head2.getData())
        {
            return false;
        }
        
        return areIdentical(head1.getNext(), head2.getNext());
    }