Help me in solving STRJ7V2 problem

My issue

how to debug the error

My code

Class Codechef{
    public static void main{
        String var="String";
        System.out.print(var.charAt(0));
        System.out.print(var.charAt(1));
        System.out.print(var.charAt(2));
    }
}

Learning course: Learn Java
Problem Link: CodeChef: Practical coding for everyone

@sindhesreeja_5
U have done typo mistake in this part .
public static void main (String[] args)

At
“public static void main
{
}”

you have to use
"Public static void main(String args[])
{

}"

Like this