Explore Library
Code QuizBeginner

Scanner Import Missing

Spot why this input program won't compile.

Codejava
public class Input {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        System.out.println(n);
    }
}

What is the bug in this code?