title: Java cannot find symbol for scanner
body: <p>I am trying to make this code work and  it keep sending the error to the scaner.
  (Test.java:7: error: cannot find symbol)</p>
  
  <pre><code>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&lt;100)
             x=x +5; 
  
          if (x&lt;500)
             x=x-2; 
  
          if (x&gt;10)
             x++;  
          else
             x--;  
          System.out.println(x);
  
  }
  
  }
  </code></pre>