Scanner class doubt

public static void main(String[] args) {

	Scanner scan = new Scanner(System.in);
	int N1 = scan.nextInt();
	int N2 = scan.nextInt();
	int n = 1;
	int i = 0;
	if(0<N1 && N1<100 && 0<N2 && N2<100) {
	while(i<N1) {
		
		if(((3*n)+2) % N2 !=0) {
			System.out.println((3*n)+2);
			i++;
		}
		n++;
	}}
	
	
	
}

My code is running well in STS for each scenario. But here it is not able to pick Scanner class fron java.util package

As far as I can see for your last submission, you haven’t included the line to create an instance of Scanner class.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.