I am trying to make this code work and it keep sending the error to the scaner. (Test.java:7: error: cannot find symbol)
class Test{
public static void main(String[] args) {
int x;
Scanner scanner = new Scanner(System.in);
System.out.println("Enter number");
x = in.nextInt();
if (x<100)
x=x +5;
if (x<500)
x=x-2;
if (x>10)
x++;
else
x--;
System.out.println(x);
}
}