title: Why am I getting cannot find symbol: in.nextInt error?
body: <p>I'm trying to write a little game in Java and it keeps popping up error:</p>
  
  <blockquote>
    <p>cannot find symbol</p>
  </blockquote>
  
  <p>on <code>in.nextInt</code>. I've got other <code>in.nextInt</code>s in my code that work fine so I'm a little stumped.</p>
  
  <pre><code>import java.util.Scanner;
  
  public class Player
  {
       int difficult = 3;
  
       public Player()
       {
       }
       public void SetDifficult()
       {
           Scanner in = new Scanner(System.in);
           System.out.println("choose your difficulty:\n1. simple\n2. easy\n3. normal\n4. hard\n5. impossible");
           difficult = in.nextint();
           ...
  }
  </code></pre>
  
  <p>What is the reason for getting this error ?</p>