title: Scanner needs inputs twice before continuing
body: <p>Hey guys i have got a small weird problem here, i am asking the user to input their menu choice and depending on what they choose it calls a certain method.</p>
  
  <p>I have used scanner.next() after some googling but for some reason only when i enter 1 or 2, i press enter and then press say 1 again and then it actually works. But what is weird that it calls options 3, 4, 5 and 6, immediately without me having to input the number twice.</p>
  
  <p>I have tried with scanner.nextLine() after the scanner.nextInt() and that just leaves me having to put my option 1 or 2 in with no result.</p>
  
  <pre><code>while(exit == 0)
      {
  
              System.out.println("\n");
              System.out.println("Menu 1: Display fullname of the user \n");
              System.out.println("Menu 2: Display of user information \n");
              System.out.println("Menu 3: Change password \n");
              System.out.println("Menu 4: List all of users in the library full name\n");
              System.out.println("Menu 5: Search for a book\n");
              System.out.println("Press 6 to search for a books location in the library\n");
              System.out.println("Press 0 to exit\n");
  
              System.out.println("Enter choice: ");
              int menuChoice = scanner.nextInt();
              scanner.next();
  
  
                       if(menuChoice == 1)
                      {
                          displayUserFullName();
                      }
                      else if(menuChoice == 2)
                      {
                          displayUserInformation();
                      }
  
                      else if(menuChoice == 3)
                      {
                          menuForChangePassword();
                      }
  
                      else if(menuChoice == 4)
                      {
                          displayAllUserInSystem();
                      }
                      else if(menuChoice == 5)
                      {
                          searchBookByISBN();
                      }
                      else if(menuChoice == 6)
                      {
                          searchBookLocation();
                      }
                      else if(menuChoice == 0)
                      {
                          exit = 1;
                      }
  }
  </code></pre>
  
  <p>Thank you in advance!</p>