according to me in this question we make two different link list we can traverse the original link list if the data at current node is odd remove that node from link list and add to first new link list and the do the same for even data ,add that node in second new link list ,after that join two link list ,that becomes our new link list .Is this the right approach to do this question or is there some other approach.
And I don’t know how to make two new link list ,whether to make it inside the main method or in even-after-odd method,And after that new link list is formed how to display that ???
Doubt regarding the concept
@Adhyayan
yes your approach is correct but you dont have to remove the node from the original list you can simply take data value of that node and add it to your new list.
you can create new list inside even-after-odd function.
Sir, this is the code I have written there are some errors ,I request you to please correct it & give comments as well so that I can understand how to join to link list and form two duplicate linklist
i made few changes to your code if you have any doubt you can ask.
otherwise please mark this doubt as resolved and rate me as well 
