Merge Sorted LinkedLists

What is wrong with my code?

@ap8730390,
Your logic and code is correct. Small error in the display function. If there are multiple test cases, the output will be printed in a single line, which is incorrect. Just add a println to the display function.

https://ide.codingblocks.com/s/254718 corrected code.