Compilation error: File name

While compiling on Codechef IDE i got this error
Main.java:2: error: class Shkstr is public, should be declared in a file named Shkstr.java
public class Shkstr {
Even I uploaded the file with same classname still I am getting this error

just change “public class shkstr” to “public class Main”

OR

if you want to name your class to be shkstr, delete the keyword ‘public’
it will be “class shkstr”