error: cannot find symbol; symbol: variable keyBoard
<p>I have this code and tried to compile it. But it gave me </p>

<blockquote>
  <p>error: cannot find symbol</p>
  
  <p>anotherEntry = keyBoard.nextInt();</p>
  
  <p>symbol: variable keyBoard</p>
  
  <p>location: class DemoVariables3</p>
</blockquote>

<p>Any clue why?</p>

<p>Code:</p>

<pre><code>import java.util.Scanner;

public class DemoVariables3
{
 public static void main(String[] args)
  {
     int entry;
     int anotherEntry;
     System.out.print("Enter another integer ");
     anotherEntry = keyBoard.nextInt();
     System.out.print("The other entry is ");
     System.out.println(anotherEntry);
     System.out.println(entry + "plus" +
    anotherEntry + "is" + (entry + anotherEntry));
  }
}
</code></pre>
