I created sc (Scanner) . Getting error me in my code with yellow Line

import java.util.*;

public class JavaBasics {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        String name = sc.next();
        System.out.print(name);
    }
}

enter image description here

Why am I getting yellow line in the sc. Getting error. i rewrote this code 3 times.