public void insertData(int data) {
        MergeLinkedList temp = this;
        if(temp==null)      {
            temp = new MergeLinkedList(data);
            return;
        }
        while(temp.getNext()!=null)
            temp = temp.getNext();
        temp.setNext(new MergeLinkedList(data));

    }