LL-k Reverse problem

https://ide.geeksforgeeks.org/zl3ndtOLiw------
i have previosly attemped this question on coding blocks compiler in a different course java crux and it was submitted there without any errors but now its showing that

“LinkedList class is public, its should be placed in a file LinkedList.java”

but the code runs fine on other online compilers like that of geeks for geeks so please resolve the issue as my code is 100 perc correct but there may be some compilation issues in code or compiler…

@AbhishekAhlawat1102,

https://ide.codingblocks.com/s/253384 Just change LinkedList to Main everywhere.

It is a technical glitch and currently being resolved. Use class name as Main instead of LinkedList as I have done in your code. Your code is correct.