title: Reading integer from user input using scanner
body: <p>In the program i am creating i am creating a menu for the user made by using integer variables, when the user selects one they will activate that option in the menu. I am trying to use readnextInt but it is not working and i am not sure why. The code for the scanner is not working.</p>
  
  <pre><code>import java.util.Scanner;
  
  
   public class username
        {
      public static void main(String[] args)
  {
  
  
      {   
         int Floor;
         Floor = 0;
  
         int Destination;
         Destination = 0;
  
         int UseLift;
         int AuditReport;
         int ExitLift;
         int a;
  
  
         UseLift = 1;
         AuditReport = 2;
         ExitLift = 3;
         a = read.NextInt;
  
  
         Scanner b = new Scanner(System.in);
         int a = in.nextInt();
  
         if (a == 1)
        System.out.println(" Enter your name ");
  
         else if (a == 2)
      System.out.println("");
  
         else if(a == 3)
      System.out.println(" Please Exit Lift ");
  
  {
  </code></pre>