title: Find the errors in the BankMenu method
body: <p>The method bankTellerMenu() is intended to show a bank teller menu and repeatedly obtain the user’s selection and execute that selection. The menu is only redisplayed if an invalid choice is made by the user. There are syntax and logical errors in the method. If these errors were corrected then the actual output would match that displayed below.
  Correct the code and test it by producing the output below. I have underlined user responses to make them stand out.</p>
  
  <p>------------------------- Expected output --------------------------</p>
  
  <p>FIT Bank</p>
  
  <ol>
  <li>Deposit</li>
  <li>Withdraw</li>
  <li>Client Menu</li>
  <li>Account Menu</li>
  <li>Exit</li>
  </ol>
  
  <p>Select an option (1-5): <strong>7</strong></p>
  
  <p>FIT Bank</p>
  
  <ol>
  <li>Deposit</li>
  <li>Withdraw</li>
  <li>Client Menu</li>
  <li>Account Menu</li>
  <li>Exit</li>
  </ol>
  
  <p>Option must be only 1-5</p>
  
  <p>Select an option (1-5): <strong>2</strong></p>
  
  <p><em>*</em> Invoke withdraw()</p>
  
  <p>Select another option (1-5): <strong>5</strong></p>
  
  <p>------------------------- Expected output --------------------------</p>
  
  <p><em><strong>Now the problem starts now, i have tried out coding the method, but it doesn't seem to be able to invoke withdraw() or any other choices when i input a value that is between 1 and 5. Can someone help please?</em></strong></p>
  
  <pre><code>import java.util.*;
  
  public class FITBank
  {
      //There are no errors in the main method.
      public static void main(String[] args)
      {
          //Just run bank teller menu.
          bankTellerMenu();
      }
  
  
  public static void bankTellerMenu()
  {
      Scanner reader = new Scanner(System.in);
      int option = 1;                
      String message = null;
  
      do{
              System.out.println("\n\tFIT Bank");
              System.out.println("1. Deposit");
              System.out.println("2. Withdraw");
              System.out.println("3. Client Menu");
              System.out.println("4. Account Menu");
              System.out.println("5. Exit");
              if(message!=null){
              System.out.println("\t"+message);
              }
              System.out.print("Select an option (1-5): ");
              option = reader.nextInt();
  
          if(option &lt; 1 || option &gt; 5){
                  message = new String("Option must be only 1-5");
                  option=1;
              }
  
          }while(option &lt;1 &amp;&amp; option &gt; 5);
  
  
  
      if(option == 1) {
  
          System.out.println("***\tInvoke deposit()");
  
          }
  
              if(option == 2){
                  System.out.println("***\tInvoke withdraw()");
  
              }
  
                  if(option == 3)
                  {   System.out.println("***\tInvoke clientMenu()");
  
              }
  
  
                  if(option==4){
                      System.out.println("***\tInvoke accountMenu()");
  
                  }
  
  
      }
  }
  </code></pre>