Public class name doesnt match file name

Main.java:2: error: class LinkedList is public, should be declared in a file named LinkedList.java
public class LinkedList {
^
1 error

Hey @sahil.gupta680,
This issue is being faced as the class Name should be Main.
The template will be updated shortly, until then you can use this template to solve the problem:


Hope it helps :slight_smile:

The issue is with other questions also i am getting same error for others challeneges in linked list like evn-after-odd please check and update others too

Our team is working on updating the other problems too. All of them will get updated shortly.
Until then, you can use the same template for other problems too.

I am not able to submit any question could you do it fast so that i can continue forward

Our team is already working on updating the templates.
Please use the template I provided you. It will work for all the problems.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.