My issue
symbol: class Scanner
location: class CodeChef
Main.java:6: error: cannot find symbol
Scanner sc=new Scanner(codechef);
^
symbol: variable codechef
location: class CodeChef
3 errors
Submit
My code
class CodeChef
{
public static void main (String[] args)
{
int a=20;
Scanner sc=new Scanner(codechef);
System.out.println(a);
}
}
Learning course: Learn Java
Problem Link: CodeChef: Practical coding for everyone