Compilation error: File name

While compiling on Codechef IDE i got this error error: class Shkstr is public, should be declared in a file named
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”


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